/**
 * Step-by-Step Booking Styles
 * Responsive Design: Mobile-first approach
 * Modern Design with Gradients and Animations
 */

/* Container */
#step-booking-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Progress Indicator */
.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step-indicator.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.step-item:has(.step-indicator.active) .step-label {
    color: #1e40af;
    font-weight: 600;
}

.step-indicator.completed {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.step-item:has(.step-indicator.completed) .step-label {
    color: #10b981;
}

.step-line {
    flex: 0 0 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 20px 10px 0;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* Step Content */
.step-content {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BOOKING TYPE SECTION (NEW)
   ============================================ */

.booking-type-section {
    margin-bottom: 50px;
}

/* Section Headings - Used in Step 1 */
.section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    margin: 0 auto 30px;
    max-width: 600px;
}

/* Step Headings - Used in Step 2 and Step 3 (same styling as section headings) */
.step-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.step-subtitle {
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    margin: 0 auto 30px;
    max-width: 600px;
}

/* Booking Type Cards Container */
.booking-type-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Booking Type Card */
.booking-type-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.booking-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.booking-type-card:hover::before {
    opacity: 1;
}

.booking-type-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-3px);
}

.booking-type-card.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
    transform: translateY(-2px);
}

/* Card Icon Wrapper */
.card-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 10px;
    color: #1e40af;
    margin-right: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.booking-type-card.selected .card-icon-wrapper {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Card Content */
.booking-type-card .card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.booking-type-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.booking-type-card .card-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.booking-type-card.selected .card-title {
    color: #1e40af;
}

.booking-type-card.selected .card-description {
    color: #1e3a8a;
}

/* Custom Checkbox for Booking Type */
.booking-type-card .custom-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    margin-left: 12px;
}

.booking-type-card.selected .custom-checkbox {
    border-color: #1e40af;
    background: #1e40af;
}

.booking-type-card.selected .custom-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 12px;
    height: 8px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: translate(-50%, -60%) rotate(-45deg) scale(1);
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: translate(-50%, -60%) rotate(-45deg) scale(0);
    }

    100% {
        transform: translate(-50%, -60%) rotate(-45deg) scale(1);
    }
}

/* ============================================
   DIRECTION SECTION
   ============================================ */

.direction-section {
    margin-top: 50px;
}

/* Direction Cards Container */
.direction-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Direction Card */
.direction-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.direction-card:hover::before {
    opacity: 1;
}

.direction-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.direction-card.selected {
    border-color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.25);
    transform: translateY(-3px);
}

/* Card Icon */
.card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); */
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.direction-card.selected .card-icon {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.35);
    transform: scale(1.05);
}

/* Card Content */
.direction-card .card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.direction-card .card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.direction-card .card-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.direction-card.selected .card-title {
    color: #1e40af;
    font-weight: 700;
}

.direction-card.selected .card-description {
    color: #1e3a8a;
}

/* Custom Radio */
.card-checkbox {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.custom-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.direction-card.selected .custom-radio {
    border-color: #1e40af;
    background: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.direction-card.selected .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: radioCheck 0.3s ease;
}

@keyframes radioCheck {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Info Message */
.info-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    margin-bottom: 30px;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.info-message svg {
    flex-shrink: 0;
}

.info-message span {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Continue Button Container */
.continue-button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-continue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-continue svg {
    transition: transform 0.3s ease;
}

.btn-continue:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    transform: translateY(-3px);
}

.btn-continue:hover svg {
    transform: translateX(4px);
}

.btn-continue:active {
    transform: translateY(-1px);
}

.btn-continue:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-continue:disabled:hover {
    background: #9ca3af;
    transform: none;
}

.btn-continue:disabled svg {
    transform: none;
}

/* Not truly disabled (still clickable to show a warning), just styled to look inactive */
.btn-continue.not-ready {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-continue.not-ready:hover {
    background: #9ca3af;
    transform: none;
}

/* Custom inline landing date/time picker (always-visible hour/minute steppers) */
.landing-datetime-picker {
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    border-radius: 8px;
}

.landing-datetime-picker .ldt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.landing-datetime-picker .ldt-time-row {
    gap: 16px;
    align-items: flex-start;
}

.landing-datetime-picker .ldt-stepper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.landing-datetime-picker .ldt-step-btn {
    width: 40px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    color: #3b82f6;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

.landing-datetime-picker .ldt-step-btn:hover {
    background: #e5e7eb;
}

.landing-datetime-picker .ldt-value-input {
    width: 48px;
    height: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    border: 2px solid #d1d5db;
    border-radius: 6px;
}

.landing-datetime-picker .ldt-unit-label {
    font-size: 12px;
    color: #6b7280;
}

.landing-datetime-picker .ldt-time-separator {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
    /* Aligns with the center of the "00" input box, not the whole +/- stepper column */
    margin-top: 50px;
}

/* Desktop Responsive (Tablet and above) */
@media (min-width: 768px) {
    .step-label {
        font-size: 13px;
    }

    .section-heading {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Booking Type Cards - Side by side (2 columns) */
    .booking-type-cards-container {
        max-width: 900px;
        gap: 16px;
    }

    .booking-type-card {
        padding: 18px 24px;
    }

    .card-icon-wrapper {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .card-icon-wrapper svg {
        width: 26px;
        height: 26px;
    }

    .booking-type-card .card-title {
        font-size: 17px;
    }

    .booking-type-card .card-description {
        font-size: 14px;
    }

    /* Direction Cards - Side by side (3 columns) */
    .direction-cards-container {
        max-width: 1000px;
        gap: 16px;
    }

    .direction-card {
        padding: 18px 24px;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .direction-card .card-title {
        font-size: 18px;
    }

    .direction-card .card-description {
        font-size: 14px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    #step-booking-container {
        padding: 40px 20px;
    }

    .step-label {
        font-size: 14px;
    }

    .section-heading {
        font-size: 32px;
    }

    /* Desktop: Booking Type on Top, Direction Below */
    .booking-type-section {
        margin-bottom: 60px;
    }

    .direction-section {
        margin-top: 0;
    }

    .booking-type-cards-container {
        max-width: 800px;
    }

    .direction-cards-container {
        gap: 24px;
    }

    .direction-card {
        padding: 30px 24px;
    }

    .btn-continue {
        padding: 16px 60px;
        font-size: 17px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    #step-booking-container {
        margin: 20px auto;
        padding: 15px;
    }

    .step-progress {
        margin-bottom: 30px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .step-progress::-webkit-scrollbar {
        display: none;
    }

    .step-item {
        flex-shrink: 0;
    }

    .step-line {
        flex-shrink: 0;
    }

    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 10px;
        max-width: 60px;
    }

    .step-line {
        flex: 0 0 30px;
        margin: 16px 5px 0;
    }

    .section-heading {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .booking-type-section {
        margin-bottom: 40px;
    }

    .direction-section {
        margin-top: 40px;
    }

    /* Mobile: Booking Type Cards - stacked (1 column) */
    .booking-type-cards-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-type-card {
        padding: 14px 16px;
        min-height: 65px;
    }

    .card-icon-wrapper {
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin-right: 12px;
    }

    .card-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }

    .booking-type-card .card-title {
        font-size: 15px;
        margin-bottom: 3px;
    }

    .booking-type-card .card-description {
        font-size: 12px;
    }

    .booking-type-card .custom-checkbox {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    /* Direction Cards - Stack on mobile (1 column) for better readability */
    .direction-cards-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .direction-card {
        padding: 14px 16px;
        min-height: 65px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .card-icon svg {
        width: 26px;
        height: 26px;
    }

    .direction-card .card-title {
        font-size: 16px;
    }

    .direction-card .card-description {
        font-size: 12px;
    }

    .custom-radio {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .btn-continue {
        width: 100%;
        padding: 15px 40px;
        font-size: 15px;
    }

    .info-message {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* ============================================
   STEP 2: Address & Airport Selection Styles
   ============================================ */

/* Completed step indicator */
.step-indicator.completed {
    background: #10b981;
    color: white;
}

.step-line.completed {
    background: #10b981;
}

/* Address Form Container */
.address-form-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Wider container for roundtrip two-column layout */
.address-form-container:has(.roundtrip-columns) {
    max-width: 1200px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Group */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* Form Input */
.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 45px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Input Icons */
.input-icon,
.select-icon {
    position: absolute;
    right: 16px;
    top: 42px;
    color: #9ca3af;
    pointer-events: none;
}

/* Round Trip Sections */
.roundtrip-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trip-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trip-heading {
    font-size: 18px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trip-heading::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #1e40af;
    border-radius: 2px;
}

.trip-separator {
    text-align: center;
    color: #6b7280;
    padding: 10px 0;
}

.trip-separator svg {
    opacity: 0.5;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.btn-back {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #eff6ff;
}

.btn-continue {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Calendar reset button in navigation */
.step-navigation .calendar-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
}

.step-navigation .calendar-reset-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.step-navigation .calendar-reset-btn:active {
    transform: translateY(0);
}

.step-navigation .calendar-reset-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .roundtrip-sections {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }

    .trip-section {
        flex: 1;
    }

    .trip-separator {
        /* padding: 60px 0 0; */
    }
}

@media (max-width: 767px) {
    .address-form-container {
        padding: 0 10px;
    }
}

/* Error States */
.form-group.has-error .form-input,
.form-group.has-error .form-select {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-select:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.has-error .input-icon,
.form-group.has-error .select-icon {
    color: #ef4444;
}

/* ============================================
   Zone-Based Address System Styles
   ============================================ */

/* Address Input Wrapper */
.address-input-wrapper {
    position: relative;
}

/* Zone Selector Container */
.zone-selector-container {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #1e40af;
    border-radius: 8px;
    max-height: 400px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: none;
}

.zone-selector-container.active {
    display: block;
    animation: expandFromTop 0.3s ease;
}

@keyframes expandFromTop {
    from {
        opacity: 0;
        transform: scaleY(0.95);
        transform-origin: top;
    }

    to {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* City Search Input */
.city-search-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    font-size: 14px;
    outline: none;
}

.city-search-input:focus {
    border-bottom-color: #1e40af;
}

/* City List */
.city-list-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.city-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.city-item:hover {
    background: #eff6ff;
    border-color: #1e40af;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.city-item.custom-city {
    background: #dbeafe;
    border-color: #1e40af;
    font-weight: 600;
    color: #1e40af;
}

/* Address Details Step */
.address-details-container {
    padding: 16px;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
}

.address-details-container h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.address-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.address-detail-input {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.address-detail-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.address-confirm-btn {
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.address-confirm-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.address-confirm-btn:not(:disabled):hover {
    background: #1e3a8a;
}

/* Loading Indicator */
.zone-loading-indicator {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.zone-loading-indicator::before {
    content: '';
    display: block;
    margin: 0 auto 12px;
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Address Input States */
.zone-address-input {
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-address-input:focus {
    cursor: pointer;
}

.zone-address-input[readonly] {
    background: #eff6ff;
    border-color: #1e40af;
    cursor: default;
}

.zone-address-input.filled {
    background: #f0fdf4;
    border-color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .zone-selector-container {
        max-height: 70vh;
    }

    .city-list-container {
        max-height: 40vh;
        padding: 8px;
        gap: 6px;
    }

    .city-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    .city-search-input {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ============================================
   Step 3: Date, Time & Passengers Styles
   ============================================ */

/* DateTime Form Container */
.datetime-form-container {
    /* max-width: 600px; */
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* Date Input */
.date-input {
    cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Time Select */
.time-select {
    cursor: pointer;
}

/* Passenger Group */
.passenger-group {
    margin-bottom: 30px;
}

.passenger-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.passenger-selector:focus-within {
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.passenger-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.passenger-btn:hover:not(:disabled) {
    border-color: #1e40af;
    background: #eff6ff;
    color: #1e40af;
    transform: scale(1.05);
}

.passenger-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.passenger-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.passenger-input {
    width: 60px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.passenger-label {
    flex: 1;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Mobile Responsive for Step 3 */
@media (max-width: 767px) {
    .datetime-form-container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .passenger-selector {
        padding: 10px 16px;
    }

    .passenger-input {
        font-size: 18px;
    }

    .passenger-btn {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 768px) {
    .datetime-form-container {
        padding: 20px;
    }
}

/* ============================================
   Calendar Picker Styles
   ============================================ */

/* Date Picker Button */
.date-picker-button {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #6b7280;
}

.date-picker-button:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.date-picker-button:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.date-picker-button.selected {
    color: #1f2937;
    border-color: #10b981;
    background: #f0fdf4;
}

.selected-date-text {
    flex: 1;
    text-align: left;
}

/* Calendar Modal */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.calendar-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.calendar-prev-btn,
.calendar-next-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-prev-btn:hover,
.calendar-next-btn:hover {
    border-color: #1e40af;
    background: #eff6ff;
    color: #1e40af;
}

.calendar-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.calendar-footer {
    padding: 16px 24px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.btn-calendar-close {
    padding: 10px 24px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calendar-close:hover {
    background: #4b5563;
}

/* Calendar Styles from existing system */
.booking-system-calendar {
    width: 100%;
}

/* Mobile Responsive for Calendar */
@media (max-width: 767px) {
    .calendar-container {
        width: 95%;
        max-height: 80vh;
    }

    .calendar-header {
        padding: 16px 20px;
    }

    .calendar-title {
        font-size: 16px;
    }

    .calendar-body {
        padding: 16px;
        max-height: 50vh;
    }

    .date-picker-button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================
   Special Price Popup
   ============================================ */

.special-price-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.popup-container {
    position: relative;
    max-width: 1400px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
}

.popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-title i {
    font-size: 18px;
    color: #1778c6;
}

.popup-title-divider {
    color: #d1d5db;
    font-weight: 300;
    margin: 0 5px;
}

.popup-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-close-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.popup-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.special-price-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.special-price-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.special-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.special-price-card.discount {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.special-price-card.premium {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, white 100%);
}

.special-price-card.special {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
}

.special-price-card-header {
    padding: 16px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.special-price-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.special-price-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #22c55e;
    color: white;
}

.special-price-card.premium .special-price-badge {
    background: #ef4444;
}

.special-price-card.special .special-price-badge {
    background: #3b82f6;
}

.special-price-card-body {
    padding: 16px;
}

.price-display {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.time-boxes {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.time-box {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-width: 40px;
}

.hour-box {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.minute-box {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #fde68a;
}

.time-separator {
    font-weight: 700;
    color: #6b7280;
}

/* Special Price Card Button */
.special-price-card-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.special-price-card-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.special-price-card-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3);
}

/* Calendar View Section */
.calendar-view-section {
    /* margin-bottom: 24px; */
}

/* Step 3: widen the calendar area - give the outer container more room and
   shrink the card's own side padding so the calendar itself gets more width */
#step-booking-container:has(.step-content.step-3) {
    max-width: 1500px;
}

.step-content.step-3 .datetime-form-container {
    padding: 30px 12px;
}

.calendar-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

/* Calendar Directive Box */
.calendar-directive-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.calendar-directive-box:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.directive-icon {
    flex-shrink: 0;
    color: #3b82f6;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(59, 130, 246, 0.2));
}

.directive-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .calendar-directive-box {
        padding: 14px 16px;
        gap: 10px;
    }

    .directive-icon {
        width: 18px;
        height: 18px;
    }

    .directive-text {
        font-size: 14px;
    }
}

.selected-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.selected-date-display.has-selection {
    background: white;
    border-color: #1e40af;
    color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.selected-date-display svg {
    color: currentColor;
}

.selected-date-text {
    font-size: 15px;
    font-weight: 500;
}

.selected-date-display.has-selection .selected-date-text {
    font-weight: 600;
}

/* Date Range Selection Styles (for roundtrip) */
.calendarv2-day.range-outbound {
    background: #3b82f6 !important;
    color: white !important;
    font-weight: 700;
    position: relative;
}

.calendarv2-day.range-outbound::after {
    content: '→';
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 12px;
    color: white;
}

.calendarv2-day.range-return {
    background: #10b981 !important;
    color: white !important;
    font-weight: 700;
    position: relative;
}

.calendarv2-day.range-return::after {
    content: '←';
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 12px;
    color: white;
}

.calendarv2-day.range-between {
    background: #dbeafe !important;
    color: #1e40af !important;
}

/* Trip Label Cards */
.trip-label {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
    animation: labelSlideUp 0.3s ease-out;
}

@keyframes labelSlideUp {
    from {
        opacity: 0;
        bottom: -20px;
    }

    to {
        opacity: 1;
        bottom: -32px;
    }
}

.trip-label-outbound {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding-left: 8px;
}

.trip-label-outbound::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-45deg);
    vertical-align: middle;
}

.trip-label-return {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding-left: 8px;
}

.trip-label-return::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(135deg);
    vertical-align: middle;
}

/* Calendar double container - extra padding bottom for labels */
.calendarv2-double-container {
    /* padding-bottom: 50px; */
    flex-wrap: wrap;
    /* Allow wrapping for toggle header */
}

/* ========================================
   ROUNDTRIP TOGGLE SWITCH
   ======================================== */

/* Toggle header container */
.calendar-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    /* Take full width */
    flex-basis: 100%;
    /* Force to new line in flex container */
}

/* Toggle switch pill */
.calendar-toggle-switch {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    background: #f3f4f6;
    border-radius: 40px;
    padding: 4px;
    min-width: 450px;
    max-width: 500px;
    height: 64px;
}

/* Toggle option (button) */
.calendar-toggle-switch .toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 36px;
    font-weight: 600;
    font-size: 16px;
    color: #6b7280;
    user-select: none;
}

.calendar-toggle-switch .toggle-option:hover {
    color: #374151;
}

/* Toggle text container (for multi-line layout) */
.calendar-toggle-switch .toggle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.calendar-toggle-switch .toggle-main {
    font-weight: 600;
    font-size: 16px;
}

.calendar-toggle-switch .toggle-direction {
    font-weight: 400;
    font-size: 13px;
    color: #6b7280;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

/* Active state for outbound */
.calendar-toggle-switch .toggle-option.toggle-outbound.active {
    color: #ffffff;
}

.calendar-toggle-switch .toggle-option.toggle-outbound.active .toggle-direction {
    color: #ffffff;
}

/* Active state for return */
.calendar-toggle-switch .toggle-option.toggle-return.active {
    color: #ffffff;
}

.calendar-toggle-switch .toggle-option.toggle-return.active .toggle-direction {
    color: #ffffff;
}

/* Toggle icon (SVG) */
.calendar-toggle-switch .toggle-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    margin-right: 4px;
}

.calendar-toggle-switch .toggle-option.active .toggle-icon {
    transform: scale(1.1);
}

/* Animated slider background */
.calendar-toggle-switch .toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

/* Slider position for return view */
.calendar-toggle-switch.view-return .toggle-slider {
    left: calc(50% + 0px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Selected dates cards container */
.selected-dates-cards-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Individual selected date card */
.selected-date-card {
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.06);
    color: white;
    font-weight: 600;
    font-size: 14px;
    animation: cardFadeIn 0.4s ease-out;
    transition: all 0.3s ease;
}

.selected-date-card.visible {
    display: flex;
}

.selected-date-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Card update animation */
.selected-date-card.updated {
    animation: cardUpdate 0.6s ease-out;
}

@keyframes cardUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 8px 16px rgba(0, 0, 0, 0.15),
            0 3px 6px rgba(0, 0, 0, 0.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Outbound card - blue gradient */
.selected-date-card.card-outbound {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Return card - green gradient */
.selected-date-card.card-return {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Card icon */
.selected-date-card .card-icon {
    flex-shrink: 0;
    color: #ffffff;
    stroke: #ffffff;
}

/* Card content */
.selected-date-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.selected-date-card .card-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-date-card .card-date {
    font-size: 14px;
    font-weight: 700;
}

.selected-date-card .card-price {
    font-size: 16px;
    font-weight: 700;
    margin-left: auto;
}

/* ==================== BOOKING SUMMARY SECTION ==================== */

/* Booking summary section (before continue button) */
.booking-summary-section {
    margin: 32px 0 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-top: 0;
}

.booking-summary-section .summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding: 0;
}

/* Summary cards container */
.summary-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Summary card (similar to selected-date-card but for summary) */
.summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 1px 3px rgba(0, 0, 0, 0.06);
    color: white;
    font-weight: 600;
    font-size: 14px;
    animation: cardFadeIn 0.4s ease-out;
    transition: all 0.3s ease;
    max-width: 50%;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Outbound card - blue gradient */
.summary-card.card-outbound {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Return card - green gradient */
.summary-card.card-return {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* One-way card - blue gradient (matching outbound/roundtrip) */
.summary-card.card-oneway {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Card icon */
.summary-card .card-icon {
    flex-shrink: 0;
}

/* Card content */
.summary-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.summary-card .card-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.summary-card .card-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.summary-card .card-date {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.summary-card .card-time {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.summary-card .card-info {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
}

.summary-card .card-price {
    font-size: 36px;
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
}

/* Time edit button */
.time-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    vertical-align: middle;
    margin-left: 4px;
}

.time-edit-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.time-edit-btn svg {
    display: block;
}

/* Card fade-in animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODERN TIME PICKER - SPECIAL PRICE STYLES
   ============================================ */

/* Light green background for special price cards */
.surcharge-card.has-special-price,
.surcharge-group-card.has-special-price {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #86efac !important;
    position: relative;
}

/* Hover effect for special price cards */
.surcharge-card.has-special-price:hover,
.surcharge-group-card.has-special-price:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border-color: #4ade80 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

/* Special price badge */
.special-price-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(34, 197, 94, 0.9);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    z-index: 10;
    white-space: nowrap;
}

/* Ensure parent cards have positioning context */
.surcharge-card,
.surcharge-group-card {
    position: relative;
}

/* Pulse animation for special price badge */
@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.special-price-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* ============================================
   TIME BUTTON SPECIAL PRICE STYLES
   ============================================ */

/* Light green background for time buttons with special price */
.time-btn.has-special-price {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-color: #86efac !important;
    position: relative;
    padding-bottom: 24px;
    /* Make room for badge */
}

.time-btn.has-special-price:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border-color: #4ade80 !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Active (selected) state for normal time buttons */
.hour-btn.active,
.minute-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-color: #0056b3 !important;
    color: #ffffff !important;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Active (selected) state for special price time buttons - darker green */
.hour-btn.has-special-price.active,
.minute-btn.has-special-price.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #15803d !important;
    color: #ffffff !important;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

/* ============================================
   TIME BUTTON PREMIUM PRICE STYLES
   ============================================ */

/* Light red background for time buttons with premium price */
.time-btn.has-premium-price {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border-color: #fca5a5 !important;
    position: relative;
    padding-bottom: 24px;
    /* Make room for badge */
}

.time-btn.has-premium-price:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border-color: #f87171 !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Active (selected) state for premium price time buttons - darker red */
.hour-btn.has-premium-price.active,
.minute-btn.has-premium-price.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Premium price badge styling - red theme */
.time-btn.has-premium-price .time-btn-badge {
    background-color: rgba(239, 68, 68, 0.9);
    color: #ffffff;
}

/* ============================================
   TIME BUTTON NORMAL PRICE STYLES (BLUE)
   ============================================ */

/* Light blue background for time buttons with normal price (base + surcharge, no special price) */
.time-btn.has-normal-price {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #93c5fd !important;
    position: relative;
    padding-bottom: 24px;
    /* Make room for badge */
}

.time-btn.has-normal-price:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-color: #60a5fa !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Active (selected) state for normal price time buttons - darker blue */
.hour-btn.has-normal-price.active,
.minute-btn.has-normal-price.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Normal price badge styling - blue theme */
.time-btn.has-normal-price .time-btn-badge {
    background-color: rgba(59, 130, 246, 0.9);
    color: #ffffff;
}

/* Surcharge cards - normal price (blue) */
.surcharge-card.has-normal-price,
.surcharge-group-card.has-normal-price {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.surcharge-card.has-normal-price:hover,
.surcharge-group-card.has-normal-price:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #60a5fa;
    transform: translateY(-2px);
}

/* Price badge on time buttons */
.time-btn-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(34, 197, 94, 0.9);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    z-index: 5;
}

/* Discount price badge - green (default already green) */
.time-btn.has-special-price .time-btn-badge {
    background-color: rgba(34, 197, 94, 0.9);
    color: #ffffff;
}

/* Make sure time button has position context */
.time-btn {
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .calendar-toggle-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .calendar-toggle-switch {
        min-width: 100%;
        max-width: 100%;
    }

    .selected-dates-cards-container {
        flex-direction: column;
        gap: 8px;
    }

    /* Booking summary responsive */
    .booking-summary-section {
        padding: 16px;
        margin: 24px 0 16px 0;
    }

    .summary-cards-container {
        flex-direction: column;
    }

    /* Icon + label/date on top, day-surcharge info bottom-left facing the price bottom-right */
    .summary-card {
        min-width: 100%;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "icon label label"
            "icon date date"
            "info info price";
        column-gap: 10px;
        row-gap: 6px;
        align-items: center;
    }

    .summary-card .card-content {
        display: contents;
    }

    .summary-card .card-icon {
        grid-area: icon;
        align-self: start;
    }

    .summary-card .card-label {
        grid-area: label;
        margin-bottom: 0;
    }

    .summary-card .card-date-row {
        grid-area: date;
    }

    .summary-card .card-info {
        grid-area: info;
        align-self: center;
        margin-top: 0;
    }

    .summary-card .card-price {
        grid-area: price;
        align-self: center;
        margin-left: 0;
        font-size: 22px;
    }

    /* Edit button larger touch target on mobile */
    .time-edit-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
    }

    /* Mobile: hide inactive card, show only selecting card */
    .selected-date-card.card-outbound {
        display: none !important;
    }

    .selected-date-card.card-outbound.selecting {
        display: flex !important;
    }

    .selected-date-card.card-return {
        display: none !important;
    }

    .selected-date-card.card-return.selecting {
        display: flex !important;
    }

    /* Override visible class on mobile for better control */
    .selected-date-card.visible.card-outbound:not(.selecting),
    .selected-date-card.visible.card-return:not(.selecting) {
        display: none !important;
    }
}

/* Skeleton loading for calendar reload */
.calendarv2-double-container.loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#calendar-instruction-text {
    transition: color 0.3s ease;
}

#calendar-instruction-text.selecting-return {
    color: #10b981;
    font-weight: 700;
}

/* Hide date and time selection rows - using summary cards instead */
#date-selection-row,
#time-selection-row {
    display: none !important;
}

/* Time display for modal-selected times */
#time-selection-row input[readonly] {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
}

#time-selection-row input[readonly]:hover {
    border-color: #1e40af;
    background: white;
}

#time-selection-row input[readonly]:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Responsive Popup */
@media (max-width: 767px) {
    .popup-container {
        margin: 2vh 12px;
        max-height: 96vh;
    }

    .popup-header {
        padding: 16px;
    }

    .popup-title {
        font-size: 16px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .popup-title i {
        font-size: 14px;
    }

    .popup-title-divider {
        margin: 0 3px;
    }

    .popup-body {
        padding: 16px;
    }

    .special-price-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .price-amount {
        font-size: 20px;
    }
}

/* ============================================
   Multi-Stop Functionality
   ============================================ */

/* Stops Container */
.stops-container {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.stops-container.has-stops {
    display: flex;
}

.stop-item {
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stop-item .form-group {
    margin-bottom: 0;
}

/* Add Stop Button */
.add-stop-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.btn-add-stop {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-add-stop:hover {
    transform: scale(1.05);
}

.btn-add-stop:hover .stop-button {
    background: #1e40af;
    transform: scale(1.1);
}

.btn-add-stop:hover .stop-dots .dot {
    background: #1e40af;
}

.stop-dots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.stop-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
    transition: all 0.3s ease;
}

.stop-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stop-button svg {
    color: #6b7280;
    transition: color 0.3s ease;
}

.btn-add-stop:hover .stop-button svg {
    color: white;
}

.stop-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s ease;
}

.btn-add-stop:hover .stop-label {
    color: #1e40af;
}

/* Remove Stop Button */
.btn-remove-stop {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.stop-item:hover .btn-remove-stop {
    opacity: 1;
}

.btn-remove-stop:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.btn-remove-stop svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* Stop Address Input */
.stop-item .zone-address-input {
    padding-right: 44px;
}

/* Responsive */
@media (max-width: 767px) {
    .add-stop-wrapper {
        margin: 16px 0;
    }

    .btn-add-stop {
        padding: 8px 12px;
        gap: 8px;
    }

    .stop-dots {
        gap: 4px;
    }

    .stop-dots .dot {
        width: 5px;
        height: 5px;
    }

    .stop-button {
        width: 30px;
        height: 30px;
    }

    .stop-label {
        font-size: 12px;
    }

    .btn-remove-stop {
        width: 24px;
        height: 24px;
    }

    .btn-remove-stop svg {
        width: 12px;
        height: 12px;
    }
}


button#add-inbound-stop:before,
button#add-outbound-stop:before {
    content: "..";
    font-size: 20px;
    position: absolute;
    transform: rotate(90deg) translateY(2px);
    top: -25px;
    left: 50%;
    letter-spacing: 2px;
}


button#add-inbound-stop:after,
button#add-outbound-stop:after {
    content: "..";
    font-size: 20px;
    position: absolute;
    transform: rotate(90deg) translateY(2px);
    bottom: -25px;
    left: 50%;
    letter-spacing: 2px;
}


.stop-button {
    position: relative;
}

div#inbound-stops-container .stop-item:before,
div#outbound-stops-container .stop-item:before {
    content: "..";
    font-size: 20px;
    position: absolute;
    transform: rotate(90deg);
    top: -5px;
    left: 50%;
    letter-spacing: 2px;
}

div#inbound-stops-container .stop-item:first-child:before,
div#outbound-stops-container .stop-item:first-child:before {
    content: "..";
    font-size: 20px;
    position: absolute;
    transform: rotate(90deg);
    top: -25px;
    left: 50%;
    letter-spacing: 2px;
}

/* ============================================
   Price Options Cards (LMB, Discounted, Base)
   ============================================ */

.price-options-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.price-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: white;
}

.price-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* LMB Card - Gold/Yellow */
.price-option-card.lmb-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
}

.price-option-card.lmb-card:hover {
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

/* Discounted Cards - Green/Red based on comparison */
.price-option-card.card-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #22c55e;
}

.price-option-card.card-green:hover {
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.price-option-card.card-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ef4444;
}

.price-option-card.card-red:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Base Price Card - Blue */
.price-option-card.card-blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
}

.price-option-card.card-blue:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Price Option Info Section */
.price-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Price Badges */
.price-type-badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.price-type-badge.recommended {
    top: 10px;
    left: 10px;
    background: #fb923c;
    color: white;
}

.price-type-badge.lowest-price {
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: white;
}

.price-type-badge.highest-price {
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
}

.price-type-badge.lmb-badge {
    top: 10px;
    left: 10px;
    background: #fbbf24;
    color: #1f2937;
}

.price-badge-top {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.price-badge-main {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 10px 0;
    text-align: left;
}

.select-time-button {
    padding: 12px 24px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

.price-option-continue:hover,
.select-time-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.price-option-continue:active,
.select-time-button:active {
    transform: translateY(0);
}

.price-discount-badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.price-option-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

.price-time,
.price-pax,
.price-comparison,
.price-description {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-time:before {
    content: "🕐";
}

.price-pax:before {
    content: "👥";
}

.price-option-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

/* Continue Button */
.price-option-continue {
    padding: 12px 24px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.price-option-continue:hover {
    background: #111827;
    transform: scale(1.05);
}


.price-option-info {
    width: 100%;
}

.price-option-continue,
.select-time-button {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.price-badge-main {
    font-size: 28px;
}

.price-option-detail-row {
    font-size: 13px;
}

.price-type-badge {
    font-size: 10px;
    padding: 4px 8px;
}

.price-option-continue {
    width: 100%;
    padding: 14px 20px;
}

.price-option-amount {
    font-size: 20px;
}

.price-option-label {
    font-size: 14px;
}

.price-option-details {
    font-size: 12px;
}

/* ============================================
   LMB Container (from sc_auftrag_api.php)
   ============================================ */

.lmb-container {
    margin-top: 20px;
    width: 100%;
    max-width: 450px;
}

/* Override some styles from old system for better integration */
.lmb-container .insta-book-card {
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lmb-container .last-minute-booking-weiter {
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    line-height: 1.4;
}

.lmb-container .last-minute-booking-weiter:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.lmb-container .last-minute-booking-weiter i {
    margin-right: 6px;
}

.lmb-inquiry-section .btn {
    max-width: 300px;
}

/* ============================================
   Price Selection Checkbox System
   ============================================ */

/* Checkbox container (yuvarlak daire) */
.price-selection-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

/* Checkbox check icon (default hidden) */
.price-selection-checkbox .checkbox-check {
    display: none;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.price-selection-checkbox .checkbox-check i {
    display: block;
    line-height: 1;
}

/* Button içinde checkbox - sol tarafa yerleştir */
.select-time-button {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

/* Button content wrapper */
.price-btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Seçildiğinde checkbox stilini değiştir */
.select-time-button.selected .price-selection-checkbox {
    background: #1778c6;
    border-color: #1778c6;
}

.select-time-button.selected .price-selection-checkbox .checkbox-check {
    display: block;
}

/* LMB kart checkbox (flex içinde sol tarafta) */
.insta-book-card .card-selected-identifier {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* LMB kartı seçildiğinde */
.insta-book-card.selected-booking .card-selected-identifier .price-selection-checkbox {
    background: #1778c6;
    border-color: #1778c6;
}

.insta-book-card.selected-booking .card-selected-identifier .price-selection-checkbox .checkbox-check {
    display: block;
}

/* Devam Et butonu container */
.price-continue-button-container {
    text-align: center;
    margin-top: 15px;
    padding: 0;
    width: 100%;
}

.price-buttons-container .price-continue-button-container {
    margin-top: 15px;
    padding: 0;
}

.price-continue-btn {
    min-width: 200px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .price-selection-checkbox {
        width: 20px;
        height: 20px;
    }

    .price-selection-checkbox .checkbox-check {
        font-size: 12px;
    }

    .price-continue-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Mobile LMB wrapper - checkbox + info + price */
.mobile-lmb-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.mobile-lmb-wrapper .card-selected-identifier {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-lmb-wrapper .flex-box-insta-book {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-lmb-wrapper .card-info-price-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.direction-card .card-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* ============================================
   SPECIAL PRICE CARDS - SCROLLBAR STYLES
   ============================================ */

/* Base scrollbar for all price buttons containers */
.price-buttons-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scroll-behavior: smooth;
}

/* Webkit scrollbar base styles */
.price-buttons-container::-webkit-scrollbar {
    width: 8px;
}

.price-buttons-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.price-buttons-container::-webkit-scrollbar-thumb {
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.price-buttons-container::-webkit-scrollbar-thumb:hover {
    opacity: 0.9;
}

/* Firefox scrollbar */
.price-buttons-container {
    scrollbar-width: thin;
}

/* ============================================
   DISCOUNT CARD - GREEN SCROLLBAR
   ============================================ */
.discount-card .price-buttons-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #86efac 0%, #4ade80 100%);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.discount-card .price-buttons-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
}

.discount-card .price-buttons-container::-webkit-scrollbar-track {
    background: rgba(34, 197, 94, 0.08);
}

.discount-card .price-buttons-container {
    scrollbar-color: #86efac rgba(34, 197, 94, 0.08);
}

/* ============================================
   BASE CARD - BLUE SCROLLBAR
   ============================================ */
.base-card .price-buttons-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.base-card .price-buttons-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
}

.base-card .price-buttons-container::-webkit-scrollbar-track {
    background: rgba(59, 130, 246, 0.08);
}

.base-card .price-buttons-container {
    scrollbar-color: #93c5fd rgba(59, 130, 246, 0.08);
}

/* ============================================
   PREMIUM CARD - RED SCROLLBAR
   ============================================ */
.premium-card .price-buttons-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fca5a5 0%, #f87171 100%);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.premium-card .price-buttons-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
}

.premium-card .price-buttons-container::-webkit-scrollbar-track {
    background: rgba(239, 68, 68, 0.08);
}

.premium-card .price-buttons-container {
    scrollbar-color: #fca5a5 rgba(239, 68, 68, 0.08);
}

.lmb-disabled-info {
    max-width: 350px;
}

/* ============================================
   ROUNDTRIP TOGGLE SWITCH (Phase 2) - iOS Style
   ============================================ */

/* Row container for toggle and details */
.trip-toggle-details-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.trip-toggle-container {
    position: relative;
    display: inline-flex;
    background: rgba(241, 245, 249, 0.9);
    border-radius: 50px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.trip-toggle-option {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50px;
    white-space: nowrap;
    outline: none;
}

.trip-toggle-option .toggle-icon {
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-right: 4px;
}

/* Return icon - flip horizontally for left-facing plane */
.trip-toggle-option .trip-icon-return {
    display: inline-block;
    transform: scaleX(-1);
}

/* Toggle text container (for multi-line layout) */
.trip-toggle-option .toggle-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.trip-toggle-option .toggle-main {
    font-weight: 600;
    font-size: 16px;
}

.trip-toggle-option .toggle-direction {
    font-weight: 400;
    font-size: 13px;
    color: #6b7280;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

/* Active state - white text */
.trip-toggle-option.active {
    color: white;
}

.trip-toggle-option.active .toggle-direction {
    color: #ffffff;
}

.trip-toggle-option.active .toggle-icon {
    transform: scale(1.1);
}

.trip-toggle-option.active .trip-icon-return {
    transform: scaleX(-1) scale(1.1);
}

/* Hover state - inactive buttons */
.trip-toggle-option:not(.active):hover {
    color: #3b82f6;
}

/* Sliding background indicator - Blue for outbound */
.toggle-slider {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

/* Slider position and color for return - Green */
.trip-toggle-container[data-active="return"] .toggle-slider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Trip details inline */
.trip-details-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trip-details-inline .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.trip-details-inline .detail-item svg {
    flex-shrink: 0;
    stroke: #64748b;
}

.trip-details-inline .detail-item small {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
}

/* Checkmark for selected vehicles */
.trip-toggle-option.has-selection::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Focus state */
.trip-toggle-option:focus {
    outline: 2px solid rgba(59, 130, 246, 0.3);
    outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .trip-toggle-details-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .trip-toggle-container {
        width: 100%;
        justify-content: center;
    }

    .trip-toggle-option {
        flex: 1;
        justify-content: center;
        padding: 12px 20px;
    }

    .trip-toggle-option .toggle-icon {
        font-size: 15px;
    }

    .trip-toggle-option .toggle-text {
        line-height: 1.2;
    }

    .trip-toggle-option .toggle-main {
        font-size: 14px;
    }

    .trip-toggle-option .toggle-direction {
        font-size: 11px;
    }

    .trip-details-inline {
        width: 100%;
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    .trip-toggle-option {
        padding: 10px 16px;
        gap: 4px;
    }

    .trip-toggle-option .toggle-icon {
        font-size: 14px;
    }

    .trip-toggle-option .toggle-text {
        line-height: 1.2;
    }

    .trip-toggle-option .toggle-main {
        font-size: 13px;
    }

    .trip-toggle-option .toggle-direction {
        font-size: 10px;
    }

    .trip-details-inline {
        gap: 8px;
    }

    .trip-details-inline .detail-item small {
        font-size: 12px;
    }
}

/* ========================================
   STEP 4 - LMB INFO CARDS (Compact Inline)
   ======================================== */

/* Container for LMB cards */
.lmb-cards-container {
    margin: 15px 0;
}

/* Individual LMB card - horizontal compact layout */
.step4-lmb-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step4-lmb-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Content section - takes most space */
.step4-lmb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Rows inside content */
.step4-lmb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* LMB Badge */
.step4-lmb-badge {
    background: #fbbf24;
    color: #78350f;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Direction label */
.step4-lmb-direction {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* Route */
.step4-lmb-route {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.step4-lmb-route i {
    color: #64748b;
    margin-right: 4px;
}

/* Info row - date, time, passengers */
.step4-lmb-info {
    font-size: 12px;
    color: #64748b;
}

.step4-lmb-info i {
    margin-right: 3px;
    color: #94a3b8;
}

.step4-lmb-separator {
    color: #cbd5e1;
    margin: 0 4px;
}

/* Price section */
.step4-lmb-price {
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid #cbd5e1;
}

.step4-lmb-price-value {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .step4-lmb-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
        gap: 10px;
    }

    .step4-lmb-price {
        width: 100%;
        padding-left: 0;
        padding-top: 10px;
        border-left: none;
        border-top: 1px solid #cbd5e1;
        justify-content: space-between;
    }

    .step4-lmb-price-value {
        font-size: 20px;
    }

    .step4-lmb-info {
        font-size: 11px;
    }
}

/* ==================== VEHICLE GRID LAYOUT ====================
 * Responsive grid for vehicle cards - cards arrange flexibly
 * Cards fill available space and wrap to new rows as needed
 */

.vehicle-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 !important;
    padding: 0;
}

.vehicle-column {
    display: contents;
    /* Let child cards participate in parent flex layout */
}

/* Transfer Product Cards - Flexible Width */
.vehicle-column .transfer-product {
    flex: 1 1 auto;
    min-width: 400px;
    max-width: 100%;
    margin-bottom: 0;
    position: relative;
}

/* Desktop: 2 cards per row - ENFORCED */
@media (min-width: 992px) {
    .vehicle-column .transfer-product {
        flex: 0 1 calc(50% - 10px) !important;
        /* 2 cards per row */
        max-width: calc(50% - 10px) !important;
    }

    /* When only one column is visible (roundtrip mode toggle) - still max 2 cards */
    #column-preset-1[style*="display: none"]~#column-preset-0 .transfer-product,
    #column-preset-0[style*="display: none"]~#column-preset-1 .transfer-product {
        flex: 0 1 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        min-width: 400px;
    }
}

/* Tablet: 1-2 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
    .vehicle-column .transfer-product {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-width: 350px;
    }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
    .vehicle-grid-container {
        gap: 15px;
    }

    .vehicle-column .transfer-product {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 280px;
    }
}

/* LMB Inquiry Section - Stay at bottom of its column */
.vehicle-column .lmb-inquiry-section {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 20px;
}

/* ==================== VEHICLE SELECTION STATE ====================
 * Visual feedback for selected vehicles in roundtrip mode
 */

.transfer-product.vehicle-selected .transfer-card {
    position: relative;
    border: 3px solid #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.transfer-product.vehicle-selected::before {
    content: '';
    position: absolute;
    top: 0;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.transfer-product.vehicle-selected::after {
    content: '✓';
    position: absolute;
    top: 0;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 11;
    pointer-events: none;
}

/* Selected state hover effect */
.transfer-product.vehicle-selected .transfer-card:hover {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Child seat quantity limit reached */
.child-seat-box .quantity-btn.at-limit {
    opacity: 0.4;
}

/* ============================================
   Step 6: Extras & Insurances
   ============================================ */

/* Slide-in effect when switching direction via the toggle (Step 5 + Step 6) - the
   swapped content can look near-identical otherwise, so a plain show/hide feels like nothing happened */
.transfer-form-card.slide-enter-right,
.extras-insurance-card.slide-enter-right {
    animation: extrasInsuranceSlideInRight 0.3s ease;
}

.transfer-form-card.slide-enter-left,
.extras-insurance-card.slide-enter-left {
    animation: extrasInsuranceSlideInLeft 0.3s ease;
}

@keyframes extrasInsuranceSlideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes extrasInsuranceSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.extras-box-list .extra-row:last-child {
    border-bottom: none;
}

.insurance-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.insurance-card {
    flex: 1 1 calc(33.333% - 11px);
    min-width: 220px;
    position: relative;
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.insurance-card:hover {
    border-color: #93c5fd;
}

.insurance-card .insurance-checkbox-input {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.insurance-card:has(.insurance-checkbox-input:checked) {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #f0f7ff;
}

.insurance-card-content h4 {
    margin: 0 32px 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.insurance-card-content p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.insurance-card-content .insurance-price {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
}

.insurance-opt-out {
    padding-top: 8px;
}

.insurance-opt-out label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.insurance-opt-out input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.apply-to-other-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.apply-to-other-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.apply-to-other-row input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.apply-to-other-row input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 767px) {
    .insurance-card {
        flex: 1 1 100%;
    }
}


@media only screen and (max-width: 767px) {

    #wa-float-btn,
    #wa-float-close {
        display: none !important;
    }
}

button.btn.vehicle-selection-back-btn {
    display: none;
}