/* ============================================
   CUSTOM MAGICBUS BOOKING FORM
   Mobile-First, Responsive, Clean
   ============================================ */

/* Import Montserrat Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Reset & Base Styles */
* {
    box-sizing: border-box;
}

/* Prevent pink/purple browser default focus/active states globally */
.mb-custom-booking-form button:focus,
.mb-custom-booking-form button:active,
.mb-custom-booking-form a:focus,
.mb-custom-booking-form a:active,
.mb-booking-form button:focus,
.mb-booking-form button:active,
.mb-booking-form a:focus,
.mb-booking-form a:active {
    outline: none !important;
}

.mb-custom-booking-form button:focus-visible,
.mb-booking-form button:focus-visible {
    outline: 2px solid rgba(0, 153, 197, 0.5) !important;
    outline-offset: 2px !important;
}

/* Force booking form to break out of theme constraints */
.mb-custom-booking-form {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.mb-custom-booking-form *,
.mb-custom-booking-form h1,
.mb-custom-booking-form h2,
.mb-custom-booking-form h3,
.mb-custom-booking-form p,
.mb-custom-booking-form button,
.mb-custom-booking-form input,
.mb-custom-booking-form select,
.mb-custom-booking-form label {
    font-family: 'Montserrat', sans-serif !important;
}

/* Override any parent theme containers */
.entry-content .mb-custom-booking-form,
.content .mb-custom-booking-form,
.site-content .mb-custom-booking-form,
.container .mb-custom-booking-form,
.elementor .mb-custom-booking-form {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Desktop: Add more horizontal padding for wider screens */
@media (min-width: 1024px) {
    .mb-custom-booking-form {
        padding: 40px 60px !important;
    }
}

/* Form Container */
.mb-form-container {
    background: #f8f8f8; /* Off-white background */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

/* ============================================
   PROGRESS BAR STYLING - SVG BASED
   ============================================ */

.mb-progress-bar {
    background: #0099c5;
    padding: 20px 40px 20px 40px; /* Equal top/bottom spacing for balanced look */
    margin: 0;
    border-radius: 12px 12px 0 0;
    position: relative;
    width: 100%;
}

/* SVG Container - positioned to align with inner dots */
.mb-progress-svg-container {
    position: absolute;
    /* Calculate: padding-top (20px) + white circle radius (16px) - inner dot radius (7px) = 29px */
    top: 29px;
    left: 10%;
    right: 10%;
    height: 14px; /* Match inner dot size */
    z-index: 1;
}

.mb-progress-svg {
    width: 100%;
    height: 14px;
    display: block;
}

/* SVG line styling - smooth transitions for animations */
.mb-progress-line {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mb-progress-line-completed {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Steps Flexbox Container - sits over the SVG */
.mb-progress-steps-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 80%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Individual step - contains circle and label vertically */
.mb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Vertical connector from circle to label - extends into circle for seamless connection */
/* Simple thin vertical with OUTWARD-ONLY trumpet flare - no disconnect, just clean spread */
.mb-progress-step::after {
    content: '';
    position: absolute;
    top: 22px; /* Start 10px higher to extend into circle */
    left: 50%;
    transform: translateX(-50%);
    width: 65px; /* Wide container for dramatic trumpet flare */
    height: 30px; /* Extended by 10px to go into circle */
    background: white;
    z-index: 0; /* Behind the inner dot */
    transition: all 0.3s ease;
    /* SIMPLE SOLUTION: straight vertical → gentle outward flare → seamless blend */
    clip-path: polygon(
        38% 0%,      /* top-left (thin - 24% wide) */
        62% 0%,      /* top-right (thin - 24% wide) */
        62% 45%,     /* stays perfectly straight until 45% */
        62.5% 50%,   /* very gentle start OUTWARD only */
        63% 55%,     /* gentle OUTWARD */
        64% 60%,     /* gentle OUTWARD */
        66% 65%,     /* building OUTWARD */
        69% 70%,     /* building OUTWARD */
        73% 75%,     /* acceleration OUTWARD */
        78% 80%,     /* sharp acceleration */
        83% 85%,     /* aggressive spread */
        88% 89%,     /* aggressive spread */
        92% 93%,     /* aggressive spread */
        96% 96%,     /* continues spreading */
        98% 98%,     /* extremely gentle into bubble */
        100% 100%,   /* bottom-right (FULL WIDTH - seamless!) */
        0% 100%,     /* bottom-left (FULL WIDTH - seamless!) */
        2% 98%,      /* extremely gentle into bubble (left) */
        4% 96%,      /* continues spreading (left) */
        8% 93%,      /* aggressive spread (left) */
        12% 89%,     /* aggressive spread (left) */
        17% 85%,     /* aggressive spread (left) */
        22% 80%,     /* sharp acceleration (left) */
        27% 75%,     /* acceleration OUTWARD (left) */
        31% 70%,     /* building OUTWARD (left) */
        34% 65%,     /* building OUTWARD (left) */
        36% 60%,     /* gentle OUTWARD (left) */
        37% 55%,     /* gentle OUTWARD (left) */
        37.5% 50%,   /* very gentle start (left) */
        38% 45%      /* stays perfectly straight until 45% (left) */
    );
}

/* Circle styling - outer white circle (consistent size) */
.mb-progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner dot - changes color based on state */
.mb-progress-circle::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cccccc; /* Grey for future steps */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 2; /* Above the vertical connector */
}

/* Active step - grey tinted circle */
.mb-progress-step.active .mb-progress-circle {
    background: #e8e8e8; /* Light grey tint */
    border-color: #e8e8e8; /* Grey border too */
}

/* Active step - blue inner dot */
.mb-progress-step.active .mb-progress-circle::before {
    background: #0099c5; /* Blue dot */
    box-shadow: 0 0 0 2px rgba(0, 153, 197, 0.2);
}

/* Completed step - orange circle with white checkmark */
.mb-progress-step.completed .mb-progress-circle {
    background: #ff9800; /* Orange outer circle */
    border-color: #ff9800;
}

.mb-progress-step.completed .mb-progress-circle::before {
    display: none; /* Hide the inner dot, show checkmark instead */
}

/* Hide numbers by default */
.mb-progress-number {
    display: none;
}

/* Checkmark styling */
.mb-progress-checkmark {
    display: none;
    width: 14px;
    height: 14px;
    color: white;
    stroke-width: 3;
}

.mb-progress-step.completed .mb-progress-checkmark {
    display: block;
    color: white;
}

/* Label styling - white pill-shaped bubbles (extra bubbly!) */
.mb-progress-label {
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    text-align: center;
    white-space: nowrap;
    background: white;
    padding: 10px 18px;
    border-radius: 30px; /* Even rounder for extra bubble effect */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0; /* Allow shrinking */
}

/* Active step - grey tinted vertical line */
.mb-progress-step.active::after {
    background: #e8e8e8; /* Light grey tint for vertical connector */
}

/* Completed step - orange vertical line */
.mb-progress-step.completed::after {
    background: #ff9800; /* Orange for vertical connector */
    transition: background 0.3s ease;
}

/* Completed step - darker orange vertical line on hover and when current-active */
.mb-progress-step.completed:hover::after,
.mb-progress-step.completed.current-active::after {
    background: #f57c00; /* Darker orange for vertical connector */
}

/* Active label - slightly larger, lifted, grey tinted */
.mb-progress-step.active .mb-progress-label {
    background: #e8e8e8; /* Light grey tint */
    color: #666666;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Completed label - orange background with white text */
.mb-progress-step.completed .mb-progress-label {
    background: #ff9800; /* Orange background */
    color: white; /* White text */
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Progress Connectors - now styled above as individual segments */

/* Form Page Container */
.mb-form-page {
    display: none;
    padding: 40px 30px;
    animation: fadeIn 0.3s ease;
}

.mb-form-page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.mb-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.mb-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.mb-page-subtitle {
    font-size: 16px;
    color: #6c757d;
}

/* ============================================
   DESTINATION SELECTION (Page 1)
   ============================================ */

.mb-destination-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

/* Mobile First: Single column */
.mb-destination-grid {
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .mb-destination-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .mb-destination-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Wide Desktop: 5 columns */
@media (min-width: 1400px) {
    .mb-destination-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

/* Destination Card - Same as hotel cards */
.mb-destination-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mb-destination-card:hover {
    border-color: #0099c5;
    box-shadow: 0 4px 8px rgba(0, 153, 197, 0.15);
    transform: translateY(-2px);
}

.mb-destination-card.selected {
    background: #0099c5;
    border-color: #0099c5;
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.3);
}

.mb-destination-card.selected .mb-destination-name {
    color: white;
}

.mb-destination-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio - SQUARE */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.mb-destination-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.mb-destination-image-wrapper.loading img {
    opacity: 0;
}

.mb-destination-image-wrapper:not(.loading) img {
    opacity: 1;
}

.mb-destination-image-wrapper.loading::after {
    content: 'Loading image...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.mb-destination-checkmark {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #0099c5;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

.mb-destination-card.selected .mb-destination-checkmark {
    display: flex;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.mb-destination-name {
    padding: 16px 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Compact for smaller screens */
@media (max-width: 768px) {
    .mb-destination-name {
        font-size: 15px;
        padding: 14px 12px;
    }
}

.mb-destination-description {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

/* ============================================
   PACKAGE TYPE SELECTION (Page 2)
   ============================================ */

.mb-package-type-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Mobile: Single column */
.mb-package-type-grid {
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .mb-package-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .mb-package-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Package Type Card (with image like destination cards) */
.mb-package-type-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.mb-package-type-card:hover {
    border-color: #0099c5;
    box-shadow: 0 4px 8px rgba(0, 153, 197, 0.15);
    transform: translateY(-2px);
}

.mb-package-type-card.selected {
    background: #0099c5;
    border-color: #0099c5;
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.3);
}

.mb-package-type-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.mb-package-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-package-type-name {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.mb-package-type-card.selected .mb-package-type-name {
    color: white;
}

.mb-package-type-checkmark {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #0099c5;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mb-package-type-card.selected .mb-package-type-checkmark {
    display: flex;
}

/* LIU Package - Pink color scheme */
.mb-package-type-card[data-type="2"]:hover {
    border-color: #e91e63;
    box-shadow: 0 4px 8px rgba(233, 30, 99, 0.15);
}

.mb-package-type-card[data-type="2"].selected {
    background: #e91e63;
    border-color: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.mb-package-type-card[data-type="2"].selected .mb-package-type-checkmark {
    color: #e91e63;
}

/* Daybus Selector (expands below when Daybus selected) */
.mb-daybus-selector {
    background: white;
    border: 2px solid #0099c5;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.15);
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mb-daybus-selector-header {
    background: #0099c5;
    padding: 20px 30px;
    margin: 0;
    border-radius: 10px 10px 0 0;
}

.mb-daybus-selector-header h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.mb-date-calendars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 0;
    background: transparent !important;
    padding: 30px;
}

.mb-calendar-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.mb-calendar-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.mb-booking-calendar {
    background: transparent !important;
    border: 2px solid #0099c5;
    border-radius: 8px;
    padding: 15px;
}

/* FullCalendar overrides for booking calendars */
.mb-booking-calendar .fc {
    font-size: 15px;
}

/* Remove ALL grid borders and lines */
.mb-booking-calendar .fc-scrollgrid,
.mb-booking-calendar .fc-scrollgrid-section,
.mb-booking-calendar .fc-scrollgrid-sync-table,
.mb-booking-calendar .fc-col-header,
.mb-booking-calendar .fc-daygrid-body,
.mb-booking-calendar .fc-scrollgrid-section-header,
.mb-booking-calendar .fc-scrollgrid-section-body {
    border: none !important;
}

.mb-booking-calendar .fc-scrollgrid td,
.mb-booking-calendar .fc-scrollgrid th,
.mb-booking-calendar .fc-scrollgrid tr {
    border: none !important;
}

.mb-booking-calendar .fc-theme-standard td,
.mb-booking-calendar .fc-theme-standard th,
.mb-booking-calendar .fc-theme-standard thead,
.mb-booking-calendar .fc-theme-standard tbody {
    border: none !important;
}

.mb-booking-calendar .fc-col-header {
    background: white;
    border: none !important;
}

.mb-booking-calendar .fc-col-header-cell {
    padding: 12px 0;
    border: none !important;
}

.mb-booking-calendar .fc-col-header-cell-cushion {
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Day cells */
.mb-booking-calendar .fc-daygrid-day {
    border: none !important;
    background: white !important;
    position: relative;
}

.mb-booking-calendar .fc-daygrid-day-frame {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    background: white !important;
}

.mb-booking-calendar .fc-daygrid-day-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.mb-booking-calendar .fc-daygrid-day-number {
    padding: 10px 12px;
    border-radius: 8px; /* Rounded square, not circle */
    font-weight: 500;
    color: #333;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    font-size: 17px;
    transition: all 0.3s ease; /* Smooth transitions for hover/select */
}

/* Remove today highlight */
.mb-booking-calendar .fc-day-today {
    background: white !important;
}

.mb-booking-calendar .fc-day-today .fc-daygrid-day-number {
    background: transparent !important;
    color: #333;
    font-weight: 500;
}

/* Available dates - company blue rounded square */
.mb-booking-calendar .fc-daygrid-day.available .fc-daygrid-day-number {
    background: #0099c5; /* Company blue */
    color: white;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

/* Ensure clickable dates always show pointer cursor on the cell itself */
.mb-booking-calendar .fc-daygrid-day.available:not(.disabled):not(.occupancy-full) {
    cursor: pointer !important;
}

.mb-booking-calendar .fc-daygrid-day.available:not(.disabled):not(.occupancy-full) * {
    cursor: pointer !important;
}

/* Hover effect - darker blue with more rounded corners */
.mb-booking-calendar .fc-daygrid-day.available:hover .fc-daygrid-day-number {
    background: #007a9e; /* Darker blue on hover */
    border-radius: 18px; /* Much more rounded (was 8px) */
    transform: scale(1.05);
}

/* High occupancy (60%+) - yellow/amber */
.mb-booking-calendar .fc-daygrid-day.available.occupancy-high .fc-daygrid-day-number {
    background: #ffa726 !important; /* Amber/orange */
    color: white !important;
}

.mb-booking-calendar .fc-daygrid-day.available.occupancy-high:hover .fc-daygrid-day-number {
    background: #fb8c00 !important; /* Darker amber on hover */
    border-radius: 18px;
    transform: scale(1.05);
}

/* Full occupancy (100%) - red, less rounded, non-clickable */
.mb-booking-calendar .fc-daygrid-day.available.occupancy-full .fc-daygrid-day-number {
    background: #e53935 !important; /* Red */
    color: white !important;
    border-radius: 4px !important; /* Much less rounded - more rectangular */
    cursor: not-allowed !important;
    opacity: 0.9 !important;
}

.mb-booking-calendar .fc-daygrid-day.available.occupancy-full:hover .fc-daygrid-day-number {
    background: #e53935 !important; /* Stay red - no hover change */
    border-radius: 4px !important; /* Stay less rounded */
    transform: none !important; /* No hover effect */
    cursor: not-allowed !important;
}

/* Selected dates - orange circle */
.mb-booking-calendar .fc-daygrid-day.selected .fc-daygrid-day-number,
.mb-booking-calendar .fc-day.selected .fc-daygrid-day-number,
.mb-booking-calendar td.selected .fc-daygrid-day-number {
    background: #ff9800 !important; /* Orange for selected */
    color: white !important;
    font-weight: 700 !important;
    border-radius: 50% !important; /* Full circle when selected */
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.3) !important; /* Orange glow */
    transform: scale(1.1) !important;
}

/* Hover effect for selected dates - deeper orange */
.mb-booking-calendar .fc-daygrid-day.selected:hover .fc-daygrid-day-number,
.mb-booking-calendar .fc-day.selected:hover .fc-daygrid-day-number,
.mb-booking-calendar td.selected:hover .fc-daygrid-day-number {
    background: #f57c00 !important; /* Darker orange on hover */
    box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.4) !important; /* Stronger glow */
    transform: scale(1.12) !important; /* Slightly larger */
}

/* Invalid return dates - has bus service but before departure date */
.mb-booking-calendar .fc-daygrid-day.invalid-return .fc-daygrid-day-number {
    background: #0099c5 !important; /* Keep blue to show bus runs */
    background-color: #0099c5 !important;
    color: white !important;
    opacity: 0.4 !important; /* Grey it out significantly */
    cursor: not-allowed !important;
    font-weight: 600 !important;
    pointer-events: none !important; /* Prevent clicking */
}

/* Remove hover effects for invalid return dates */
.mb-booking-calendar .fc-daygrid-day.invalid-return:hover .fc-daygrid-day-number {
    background: #0099c5 !important; /* Stay same color - no hover effect */
    background-color: #0099c5 !important;
    border-radius: 8px !important; /* Stay same shape - no hover effect */
    transform: none !important; /* No scale effect */
    opacity: 0.4 !important; /* Stay greyed out */
    cursor: not-allowed !important;
}

/* Disabled dates - just show as regular numbers (no bus service) */
.mb-booking-calendar .fc-daygrid-day.disabled {
    opacity: 1 !important;
    cursor: default;
}

.mb-booking-calendar .fc-daygrid-day.disabled .fc-daygrid-day-number {
    color: #333;
    background: transparent;
    cursor: default;
}

/* When date has a trip (available) but is disabled - grey it out but keep the colored box */
.mb-booking-calendar .fc-daygrid-day.available.disabled .fc-daygrid-day-number {
    color: white !important; /* Keep white text */
    opacity: 0.4 !important; /* Grey out effect */
    cursor: not-allowed !important;
}

.mb-booking-calendar .fc-daygrid-day.available.disabled:hover .fc-daygrid-day-number {
    opacity: 0.4 !important; /* Stay greyed out on hover */
    transform: none !important; /* No hover effect */
}

/* Other month dates - visible but lighter */
.mb-booking-calendar .fc-day-other .fc-daygrid-day-number {
    color: #bbb;
}

/* Header toolbar */
.mb-booking-calendar .fc-header-toolbar {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #0099c5;
    border-radius: 6px 6px 0 0;
    margin: -15px -15px 15px -15px;
}

.mb-booking-calendar .fc-toolbar-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.mb-booking-calendar .fc-button {
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.mb-booking-calendar .fc-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.mb-booking-calendar .fc-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

.mb-booking-calendar .fc-button:active {
    transform: translateY(1px) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* Fix missing arrow icons - replace with text arrows */
.mb-booking-calendar .fc-prev-button .fc-icon,
.mb-booking-calendar .fc-next-button .fc-icon {
    display: none !important;
}

.mb-booking-calendar .fc-prev-button::before {
    content: '‹' !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.mb-booking-calendar .fc-next-button::before {
    content: '›' !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* NUCLEAR: Remove ALL backgrounds from FullCalendar */
.mb-booking-calendar *,
.mb-booking-calendar div,
.mb-booking-calendar table,
.mb-booking-calendar tbody,
.mb-booking-calendar thead,
.mb-booking-calendar tr,
.mb-booking-calendar td,
.mb-booking-calendar th {
    background: transparent !important;
    background-color: transparent !important;
}

/* Except for the selected/available date rounded squares */
.mb-booking-calendar .fc-daygrid-day.available .fc-daygrid-day-number {
    background: #0099c5 !important; /* Company blue */
    background-color: #0099c5 !important;
}

.mb-booking-calendar .fc-daygrid-day.available:hover .fc-daygrid-day-number {
    background: #007a9e !important; /* Darker blue on hover */
    background-color: #007a9e !important;
}

/* Occupancy overrides for NUCLEAR section */
.mb-booking-calendar .fc-daygrid-day.available.occupancy-high .fc-daygrid-day-number {
    background: #ffa726 !important; /* Amber */
    background-color: #ffa726 !important;
}

.mb-booking-calendar .fc-daygrid-day.available.occupancy-high:hover .fc-daygrid-day-number {
    background: #fb8c00 !important; /* Darker amber */
    background-color: #fb8c00 !important;
}

.mb-booking-calendar .fc-daygrid-day.available.occupancy-full .fc-daygrid-day-number {
    background: #e53935 !important; /* Red */
    background-color: #e53935 !important;
}

.mb-booking-calendar .fc-daygrid-day.available.occupancy-full:hover .fc-daygrid-day-number {
    background: #e53935 !important; /* Stay red */
    background-color: #e53935 !important;
}

.mb-booking-calendar .fc-daygrid-day.invalid-return .fc-daygrid-day-number {
    background: #0099c5 !important; /* Keep blue for invalid dates */
    background-color: #0099c5 !important;
    opacity: 0.4 !important; /* Grey it out */
}

.mb-booking-calendar .fc-daygrid-day.invalid-return:hover .fc-daygrid-day-number {
    background: #0099c5 !important; /* No hover change */
    background-color: #0099c5 !important;
    opacity: 0.4 !important; /* Stay greyed out */
    transform: none !important;
}

.mb-booking-calendar .fc-daygrid-day.selected .fc-daygrid-day-number,
.mb-booking-calendar .fc-day.selected .fc-daygrid-day-number,
.mb-booking-calendar td.selected .fc-daygrid-day-number {
    background: #ff9800 !important; /* Orange for selected */
    background-color: #ff9800 !important;
}

.mb-booking-calendar .fc-daygrid-day.selected:hover .fc-daygrid-day-number,
.mb-booking-calendar .fc-day.selected:hover .fc-daygrid-day-number,
.mb-booking-calendar td.selected:hover .fc-daygrid-day-number {
    background: #f57c00 !important; /* Darker orange on hover */
    background-color: #f57c00 !important;
}

/* Except for button backgrounds */
.mb-booking-calendar .fc-button {
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.mb-booking-calendar .fc-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.mb-booking-calendar .fc-button:active {
    background: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* Keep the header toolbar blue */
.mb-booking-calendar .fc-header-toolbar {
    background: #0099c5 !important;
    background-color: #0099c5 !important;
}

/* Hide FullCalendar internal scroller elements */
.mb-booking-calendar .fc-scroller-harness,
.mb-booking-calendar .fc-scroller-liquid-absolute,
.mb-booking-calendar .fc-scroller,
.mb-booking-calendar .fc-scroller-harness-liquid {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.mb-selected-date {
    display: none !important;
}

/* Availability Legend */
.mb-availability-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 30px;
    background: white;
    border: 3px solid #0099c5;
    border-radius: 8px;
    margin: 20px 30px;
    flex-wrap: wrap;
}

.mb-legend-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-right: 15px;
}

.mb-legend-items {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mb-legend-dot-full {
    border-radius: 3px; /* Squared for "full" */
}

.mb-legend-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mb-availability-legend {
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
        margin: 15px 20px;
    }
    
    .mb-legend-title {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .mb-legend-items {
        gap: 20px;
    }
    
    .mb-legend-text {
        font-size: 13px;
    }
}

.mb-location-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 30px;
    background: #0099c5;
    margin: 0;
    border-radius: 0 0 10px 10px;
}

.mb-location-picker label {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-align: center;
    font-size: 16px;
}

.mb-location-picker select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    font-weight: 500;
    text-align: center;
    text-align-last: center;
}

.mb-location-picker select:hover {
    border-color: white;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.mb-location-picker select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.mb-location-picker select option {
    text-align: center;
    color: #333;
    background: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mb-date-calendars {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .mb-location-selection {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .mb-daybus-selector-header {
        padding: 15px 20px;
    }
    
    .mb-daybus-selector-header h3 {
        font-size: 20px;
    }
    
    .mb-calendar-label {
        font-size: 16px;
    }
}

/* ============================================
   FORM NAVIGATION - PILLBOX DESIGN
   ============================================ */

.mb-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* New Pillbox Navigation Buttons */
.mb-nav-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif !important;
    border: none;
    border-radius: 50px; /* Pillbox: fully rounded */
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    outline: none;
    text-decoration: none;
}

.mb-nav-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    pointer-events: none !important;
    background: #e9ecef !important; /* Override any hover color */
    color: #6c757d !important;
}

/* Prevent disabled button hover states (override Elementor) */
.mb-nav-btn:disabled:hover,
.mb-nav-btn:disabled:active,
.mb-nav-btn:disabled:focus {
    background: #e9ecef !important;
    color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.4 !important;
}

/* Next Button - Primary (Blue) */
.mb-nav-btn-next {
    background: #0099c5;
    color: white;
}

.mb-nav-btn-next:hover:not(:disabled) {
    background: #007a9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 153, 197, 0.35);
}

.mb-nav-btn-next:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 153, 197, 0.2);
}

/* Back Button - Secondary (White/Grey) */
.mb-nav-btn-back {
    background: white;
    color: #495057;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mb-nav-btn-back:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mb-nav-btn-back:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Legacy button classes (keep for any old references) */
/* Global override to prevent Elementor/WP default button styles (pink hover) */
/* Remove outline and prevent style inheritance */
.mb-booking-form-wrapper button:focus,
.mb-booking-form-wrapper .mb-btn:focus,
.mb-booking-form-wrapper .mb-nav-btn:focus {
    outline: none !important;
}

.mb-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mb-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #e9ecef !important;
    color: #6c757d !important;
    box-shadow: none !important;
}

.mb-btn:disabled:hover,
.mb-btn:disabled:active,
.mb-btn:disabled:focus {
    background: #e9ecef !important;
    color: #6c757d !important;
    transform: none !important;
}

.mb-btn-primary {
    background: #0099C5 !important;
    color: white !important;
}

.mb-btn-primary:hover:not(:disabled) {
    background: #007a9e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 197, 0.3);
}

.mb-btn-secondary {
    background: white !important;
    color: #6c757d !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mb-btn-secondary:hover:not(:disabled) {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mb-btn-secondary:active:not(:disabled) {
    background: white !important;
    transform: translateY(0);
}

/* Mobile: Stack buttons */
@media (max-width: 480px) {
    .mb-form-navigation {
        flex-direction: column-reverse;
    }
    
    .mb-nav-btn,
    .mb-btn {
        width: 100%;
        padding: 16px 24px;
        justify-content: center;
    }
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.mb-loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.mb-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0099C5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mb-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

.mb-success-message {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet responsive */
@media (max-width: 1024px) {
    .mb-progress-bar {
        padding: 18px 30px 18px 30px; /* Equal top/bottom spacing */
    }
    
    .mb-progress-svg-container {
        /* Calculate: padding-top (18px) + white circle radius (14px) - inner dot radius (6px) = 26px */
        top: 26px;
        height: 12px; /* Match inner dot size */
    }
    
    .mb-progress-svg {
        height: 12px;
    }
    
    .mb-progress-steps-flex {
        max-width: 85%;
    }
    
    .mb-progress-step {
        gap: 18px;
    }
    
    .mb-progress-step::after {
        top: 20px; /* Start 8px higher to extend into circle */
        height: 26px; /* Extended by 8px to go into circle */
        width: 26px; /* Extra wide base for dramatic flare */
        clip-path: polygon(
            30% 0%, 70% 0%, 70% 50%, 71% 60%, 73% 68%, 76% 76%, 80% 84%, 85% 92%, 92% 98%, 100% 100%,
            0% 100%, 8% 98%, 15% 92%, 20% 84%, 24% 76%, 27% 68%, 29% 60%, 30% 50%
        );
    }
    
    .mb-progress-circle {
        width: 28px;
        height: 28px;
        border-width: 3px;
    }
    
    .mb-progress-circle::before {
        width: 12px;
        height: 12px;
    }
    
    .mb-progress-label {
        font-size: 13px;
        padding: 8px 12px;
        max-width: 120px; /* Prevent excessive width */
    }
    
    .mb-progress-step.active .mb-progress-label {
        font-size: 14px;
    }
}

/* Mobile optimization (primary target: 70% users) */
@media (max-width: 768px) {
    .mb-custom-booking-form {
        padding: 10px;
    }
    
    .mb-form-page {
        padding: 30px 20px;
    }
    
    .mb-page-title {
        font-size: 24px;
    }
    
    .mb-progress-bar {
        padding: 15px 15px 15px 15px; /* Equal top/bottom spacing */
    }
    
    .mb-progress-svg-container {
        /* Calculate: padding-top (15px) + white circle radius (12px) - inner dot radius (5px) = 22px */
        top: 22px;
        height: 10px; /* Match inner dot size */
    }
    
    .mb-progress-svg {
        height: 10px;
    }
    
    .mb-progress-steps-flex {
        max-width: 90%;
    }
    
    .mb-progress-step {
        gap: 15px;
    }
    
    .mb-progress-step::after {
        top: 17px; /* Start 7px higher to extend into circle */
        height: 22px; /* Extended by 7px to go into circle */
        width: 24px; /* Extra wide base for dramatic flare */
        clip-path: polygon(
            30% 0%, 70% 0%, 70% 50%, 71% 60%, 73% 68%, 76% 76%, 80% 84%, 85% 92%, 92% 98%, 100% 100%,
            0% 100%, 8% 98%, 15% 92%, 20% 84%, 24% 76%, 27% 68%, 29% 60%, 30% 50%
        );
    }
    
    .mb-progress-circle {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
    
    .mb-progress-circle::before {
        width: 10px;
        height: 10px;
    }
    
    .mb-progress-checkmark {
        width: 10px;
        height: 10px;
    }
    
    .mb-progress-label {
        font-size: 11px;
        padding: 7px 10px;
        white-space: normal; /* Allow wrapping on mobile */
        max-width: 90px;
        line-height: 1.3;
        text-align: center; /* Ensure centering when wrapped */
    }
    
    .mb-progress-step.active .mb-progress-label {
        font-size: 12px;
    }
    
    .mb-destination-info {
        padding: 15px;
    }
    
    .mb-destination-name {
        font-size: 16px;
    }
}

/* Small mobile responsive */
@media (max-width: 480px) {
    .mb-progress-bar {
        padding: 12px 10px 12px 10px; /* Equal top/bottom spacing */
    }
    
    .mb-progress-svg-container {
        /* Calculate: padding-top (12px) + white circle radius (10px) - inner dot radius (4px) = 18px */
        top: 18px;
        height: 8px; /* Match inner dot size */
    }
    
    .mb-progress-svg {
        height: 8px;
    }
    
    .mb-progress-steps-flex {
        max-width: 95%;
    }
    
    .mb-progress-step {
        gap: 12px;
    }
    
    .mb-progress-step::after {
        top: 14px; /* Start 6px higher to extend into circle */
        height: 18px; /* Extended by 6px to go into circle */
        width: 22px; /* Extra wide base for dramatic flare */
        clip-path: polygon(
            30% 0%, 70% 0%, 70% 50%, 71% 60%, 73% 68%, 76% 76%, 80% 84%, 85% 92%, 92% 98%, 100% 100%,
            0% 100%, 8% 98%, 15% 92%, 20% 84%, 24% 76%, 27% 68%, 29% 60%, 30% 50%
        );
    }
    
    .mb-progress-circle {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
    
    .mb-progress-circle::before {
        width: 8px;
        height: 8px;
    }
    
    .mb-progress-label {
        font-size: 9px;
        padding: 5px 6px;
        max-width: 70px;
        white-space: normal; /* Allow wrapping on small mobile */
        line-height: 1.2;
        text-align: center; /* Ensure centering when wrapped */
    }
    
    .mb-progress-step.active .mb-progress-label {
        font-size: 10px;
    }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
    .mb-custom-booking-form {
        padding: 40px 20px;
    }
    
    .mb-form-container {
        border-radius: 20px;
    }
}

