@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Montserrat:wght@400;500;600;700&display=swap');

.asb-booking-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .asb-booking-form-container {
        max-width: 100% !important;
        padding: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure form maintains full width on mobile to match pricing box */
    .eits-booking-page-content .asb-booking-form-container,
    #asb-booking-form-container .asb-booking-form-container {
        max-width: 100% !important;
        padding: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .eits-booking-page-content .asb-booking-form-container .asb-booking-form,
    #asb-booking-form-container .asb-booking-form-container .asb-booking-form {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.asb-booking-form {
    background: #ffffff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

}

.asb-form-header {
    background: linear-gradient(135deg, #0B2545 0%, #192026 100%);
    color: white;
    padding: 24px 32px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.asb-form-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: #E0B253;
}

.asb-booking-form-container .asb-booking-form .asb-form-header h2,
.asb-booking-form .asb-form-header h2,
.asb-form-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    color: #E0B253 !important;
}

.asb-booking-form-container .asb-booking-form .asb-form-header p,
.asb-booking-form .asb-form-header p,
.asb-form-header p {
    margin: 8px 0 0 0;
    opacity: 1;
    font-size: 14px;
    color: #ffffff !important;
}

.asb-form-body {
    padding: 24px 32px 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure form body maintains full width when payment step is active */
.asb-form-body:has(.asb-form-steps[data-step="4"].active),
.asb-form-body .asb-form-steps[data-step="4"].active {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.asb-form-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.asb-form-section h3 {
    display: none;
}

.asb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.asb-form-grid.full-width {
    grid-template-columns: 1fr;
}

.asb-form-group {
    margin-bottom: 0;
}

.asb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #192026;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.asb-form-group label .required {
    color: #E65338;
    margin-left: 2px;
}

.asb-form-group input[type="text"],
.asb-form-group input[type="email"],
.asb-form-group input[type="tel"],
.asb-form-group input[type="number"],
.asb-form-group select,
.asb-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: 'Montserrat', sans-serif;
    color: #192026;
}

.asb-form-group input:focus,
.asb-form-group select:focus,
.asb-form-group textarea:focus {
    outline: none;
    border-color: #E0B253;
    box-shadow: 0 0 0 2px rgba(224, 178, 83, 0.2);
}

.asb-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.asb-service-info {
    background: linear-gradient(135deg, #F7F7F7 0%, #ffffff 100%);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 8px;
    display: none;
    border-left: 4px solid #E0B253;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.asb-service-info.show {
    display: block;
}

.asb-service-info-item {
    display: inline-block;
    margin-right: 24px;
    font-size: 14px;
    color: #192026;
}

.asb-service-info-item strong {
    color: #0B2545;
    font-weight: 600;
}

.asb-service-price {
    color: #E0B253;
    font-size: 18px;
    font-weight: 700;
}

#asb-time-slots-group {
    margin-top: 0;
}

.asb-form-group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    background: #ffffff;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

.asb-form-group input[type="number"]::-webkit-inner-spin-button,
.asb-form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.asb-passenger-quantity {
    position: relative;
    display: inline-block;
    width: 100%;
}

.asb-passenger-quantity input[type="number"] {
    padding-right: 40px;
    padding-left: 40px;
}

.asb-quantity-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #E0B253;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.asb-quantity-btn:hover {
    background: #0B2545;
    transform: translateY(-50%) scale(1.05);
}

.asb-quantity-btn-minus {
    left: 4px;
}

.asb-quantity-btn-plus {
    right: 4px;
}

.asb-collapsible {
    margin-top: 20px;
}

.asb-collapsible-header {
    background: linear-gradient(135deg, #F7F7F7 0%, #ffffff 100%);
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.asb-collapsible-header:hover {
    background: #E0B253;
    color: #ffffff;
    border-color: #E0B253;
}

.asb-collapsible-header:hover h4 {
    color: #ffffff;
}

.asb-collapsible-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0B2545;
    transition: color 0.3s ease;
}

.asb-collapsible-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    color: #E0B253;
    font-size: 16px;
}

.asb-collapsible-header:hover .asb-collapsible-icon {
    color: #ffffff;
}

.asb-collapsible.open .asb-collapsible-icon {
    transform: rotate(180deg);
}

.asb-collapsible-content {
    display: none;
    padding: 20px 0 0 0;
}

.asb-collapsible.open .asb-collapsible-content {
    display: block;
}

.asb-form-submit {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #F7F7F7;
}

.asb-submit-btn {
    background: #E0B253;
    color: #ffffff;
    padding: 14px 48px;
    border: 2px solid #E0B253;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(224, 178, 83, 0.3);
    min-width: 240px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.asb-submit-btn:hover:not(:disabled) {
    background: transparent;
    color: #E0B253;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.4);
}

.asb-submit-btn:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.asb-submit-btn:disabled::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

.asb-form-messages {
    margin-top: 20px;
}

.asb-success-message,
.asb-error-message {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

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

.asb-success-message {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #82B452;
    box-shadow: 0 2px 8px rgba(130, 180, 82, 0.2);
}

.asb-error-message {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #E65338;
    box-shadow: 0 2px 8px rgba(230, 83, 56, 0.2);
}

.asb-error-message ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.asb-loading {
    text-align: center;
    padding: 16px;
    color: #6b7280;
    font-size: 14px;
}

.asb-help-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

.asb-form-progress {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0 40px;
}

.asb-progress-step {
    flex: 1;
    height: 5px;
    background: #d1d5db;
    border-radius: 3px;
    transition: all 0.4s ease;
    position: relative;
}

.asb-progress-step.active {
    background: linear-gradient(90deg, #E0B253 0%, #F7B614 100%);
    box-shadow: 0 2px 8px rgba(224, 178, 83, 0.4);
}

.asb-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666666;
    font-style: italic;
}

#asb-flight-number {
    text-transform: uppercase;
}

#asb-flight-number:focus {
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .asb-form-header {
        padding: 20px 20px;
    }

    .asb-form-header h2 {
        font-size: 20px;
    }

    .asb-form-body {
        padding: 20px 20px;
    }

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

    .asb-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 6px;
    }

    .asb-submit-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .asb-service-info-item {
        display: block;
        margin: 4px 0;
    }

    .asb-payment-section {
        padding: 20px 20px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }

    #payment-element {
        width: 100%;
    }
}

/* Custom Quote Services */
.asb-custom-quote-services {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.asb-custom-quote-service-item {
    background: linear-gradient(135deg, #F7F7F7 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #E0B253;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.asb-custom-quote-service-item h4 {
    font-family: 'Playfair Display', serif;
    color: #0B2545;
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.asb-custom-quote-service-item p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.asb-custom-quote-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.asb-btn-whatsapp,
.asb-btn-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.asb-btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border-color: #25D366;
}

.asb-btn-whatsapp:hover {
    background: #20BA5A;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.asb-btn-email {
    background: #E0B253;
    color: #ffffff;
    border-color: #E0B253;
}

.asb-btn-email:hover {
    background: transparent;
    color: #E0B253;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.4);
}

.asb-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Inline buttons for pricing table - matching SELECT button style */
.asb-custom-quote-buttons-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.asb-btn-whatsapp-inline,
.asb-btn-email-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #E0B253;
    white-space: nowrap;
    cursor: pointer;
}

.asb-btn-whatsapp-inline {
    background: #E0B253;
    color: #ffffff;
    border-color: #E0B253;
}

.asb-btn-whatsapp-inline:hover {
    background: transparent;
    color: #E0B253;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.3);
}

.asb-btn-email-inline {
    background: #E0B253;
    color: #ffffff;
    border-color: #E0B253;
}

.asb-btn-email-inline:hover {
    background: transparent;
    color: #E0B253;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.3);
}

.asb-btn-whatsapp-inline .asb-btn-icon,
.asb-btn-email-inline .asb-btn-icon {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .asb-custom-quote-buttons {
        flex-direction: column;
    }

    .asb-btn-whatsapp,
    .asb-btn-email {
        width: 100%;
        justify-content: center;
    }

    .asb-custom-quote-buttons-inline {
        flex-direction: column;
        width: 100%;
    }

    .asb-btn-whatsapp-inline,
    .asb-btn-email-inline {
        width: 100%;
        justify-content: center;
    }
}

.asb-services-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.asb-service-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.asb-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #E0B253;
}

.asb-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.asb-service-card h3 {
    margin-top: 0;
    color: #374151;
    font-size: 20px;
    font-weight: 600;
}

.asb-service-description {
    color: #6b7280;
    margin: 12px 0;
    line-height: 1.6;
    font-size: 14px;
}

.asb-service-details {
    margin: 16px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
}

.asb-service-details > div {
    margin: 6px 0;
    color: #374151;
}

.asb-book-now-btn {
    display: inline-block;
    background: #E0B253;
    color: #ffffff;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 12px;
    font-size: 14px;
    border: 2px solid #E0B253;
    box-shadow: 0 4px 15px rgba(224, 178, 83, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asb-book-now-btn:hover {
    background: transparent;
    color: #E0B253;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.4);
}

.flatpickr-calendar.asb-flatpickr {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid var(--accent-gold, #E0B253) !important;
    font-family: 'Montserrat', sans-serif !important;
}

.flatpickr-months {
    background: linear-gradient(135deg, #0B2545 0%, #192026 100%) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 10px 0 !important;
}

.flatpickr-current-month {
    color: #ffffff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.1rem !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #E0B253 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    fill: #ffffff !important;
}

.flatpickr-weekday {
    color: #0B2545 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

.flatpickr-day {
    color: #192026 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: rgba(224, 178, 83, 0.1) !important;
    border-color: #E0B253 !important;
    color: #0B2545 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #E0B253 !important;
    border-color: #E0B253 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.flatpickr-day.today {
    border-color: #0B2545 !important;
    color: #0B2545 !important;
    font-weight: 600 !important;
}

.flatpickr-day.today:hover {
    background: rgba(11, 37, 69, 0.1) !important;
}

.flatpickr-day.selected.today {
    background: #E0B253 !important;
    color: #ffffff !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #d1d5db !important;
    background: transparent !important;
}

.asb-screen-message-section {
    background: linear-gradient(135deg, #F7F7F7 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #E0B253;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.asb-screen-message-section h3 {
    font-family: 'Playfair Display', serif;
    color: #0B2545;
    margin: 0 0 12px 0;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

.asb-step-description {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #0B2545;
    text-align: center;
}

.asb-char-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    font-weight: 500;
}

.asb-char-counter span {
    color: #0B2545;
    font-weight: 600;
}

.asb-payment-section {
    background: linear-gradient(135deg, #F7F7F7 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #E0B253;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    flex: 1 1 100% !important;
}

.asb-payment-section h3 {
    font-family: 'Playfair Display', serif;
    color: #0B2545;
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
}

.asb-price-summary {
    background: #ffffff;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.asb-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asb-price-row span:first-child {
    font-weight: 600;
    color: #192026;
    font-size: 14px;
}

.asb-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #E0B253;
}

#payment-element {
    margin-top: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure Stripe payment element container maintains full width */
#payment-element > *,
#payment-element iframe,
.StripeElement,
.StripeElement--complete,
.StripeElement--invalid,
.StripeElement--focus,
#payment-element form,
#payment-element div[role="group"],
#payment-element .p-Input,
#payment-element .p-InputInput {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Override any Stripe wrapper divs */
#payment-element > div,
#payment-element > div > div,
#payment-element > div > div > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.asb-payment-message {
    color: #721c24;
    background: #f8d7da;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    border-left: 4px solid #E65338;
    font-size: 14px;
    font-weight: 500;
}

.asb-form-group input[type="text"].flatpickr-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23E0B253' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.asb-form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E0B253' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

@media (max-width: 640px) {
    .asb-booking-form-container {
        padding: 0 !important;
        margin-top: 30px;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .asb-booking-form {
        margin-top: 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .asb-form-header {
        padding: 20px 20px;
    }

    .asb-form-header h2 {
        font-size: 22px;
    }

    .asb-form-header p {
        font-size: 13px;
    }

    .asb-form-body {
        padding: 20px 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure form maintains full width on mobile to match pricing box */
    .eits-booking-page-content .asb-booking-form-container,
    #asb-booking-form-container .asb-booking-form-container {
        max-width: 100% !important;
        padding: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .eits-booking-page-content .asb-booking-form-container .asb-booking-form,
    #asb-booking-form-container .asb-booking-form-container .asb-booking-form {
        width: 100% !important;
        max-width: 100% !important;
    }
}

    .asb-total-amount {
        font-size: 20px;
    }

    .flatpickr-calendar {
        max-width: 100% !important;
    }
}

.asb-form-steps {
    display: none !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.asb-form-steps.active {
    display: block !important;
    animation: fadeInStep 0.4s ease-in-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.asb-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.asb-nav-button {
    padding: 12px 30px;
    border: 2px solid #E0B253;
    background: transparent;
    color: #E0B253;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.asb-nav-button:hover:not(:disabled) {
    background: #E0B253;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.4);
}

.asb-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.asb-nav-button.primary {
    background: #E0B253;
    color: #ffffff;
}

.asb-nav-button.primary:hover:not(:disabled) {
    background: transparent;
    color: #E0B253;
}

.asb-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    margin-top: 20px;
    position: relative;
    max-width: 100%;
    padding: 0 20px;
}

.asb-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.asb-progress-line {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 2px;
    background: #E0B253;
    transition: width 0.4s ease;
    z-index: 1;
}

.asb-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.asb-progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #999999;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.asb-progress-step.active .asb-progress-step-circle {
    border-color: #E0B253;
    background: #E0B253;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(224, 178, 83, 0.3);
}

.asb-progress-step.completed .asb-progress-step-circle {
    border-color: #0B2545;
    background: #0B2545;
    color: #ffffff;
}

.asb-progress-step-label {
    font-size: 13px;
    color: #666666;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.asb-progress-step.active .asb-progress-step-label {
    color: #E0B253;
}

.asb-progress-step.completed .asb-progress-step-label {
    color: #0B2545;
}

.asb-review-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #E0B253;
}

.asb-review-section h4 {
    font-family: 'Playfair Display', serif;
    color: #0B2545;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.asb-review-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.asb-review-row:last-child {
    border-bottom: none;
}

.asb-review-label {
    font-weight: 600;
    color: #555555;
}

.asb-review-value {
    color: #192026;
}

#asb-payment-section {
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Override any WordPress or theme styles that might constrain payment section */
.asb-form-body .asb-form-steps[data-step="4"],
.asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section,
.asb-booking-form .asb-form-steps[data-step="4"],
.asb-booking-form .asb-form-steps[data-step="4"] .asb-payment-section,
.asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"],
.asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Universal override for payment step - highest specificity */
.asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"].active,
.asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"].active .asb-payment-section,
.asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"].active .asb-payment-section #payment-element {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Override WordPress eits-booking-page-content container constraints */
.eits-booking-page-content .asb-booking-form-container,
.eits-booking-page-content .asb-booking-form-container .asb-booking-form,
.eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body,
.eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"],
.eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Override any container class that might wrap the form */
.eits-booking-page-content .container .asb-booking-form-container,
.eits-booking-page-content .container .asb-booking-form-container .asb-booking-form,
.eits-booking-page-content .container .asb-booking-form-container .asb-booking-form .asb-form-body,
.eits-booking-page-content .container .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"],
.eits-booking-page-content .container .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure no flex container constraints affect payment section */
.eits-booking-page-content #asb-booking-form-container .asb-booking-form-container,
.eits-booking-page-content #asb-booking-form-container .asb-booking-form-container .asb-booking-form,
.eits-booking-page-content #asb-booking-form-container .asb-booking-form-container .asb-booking-form .asb-form-body,
.eits-booking-page-content #asb-booking-form-container .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"],
.eits-booking-page-content #asb-booking-form-container .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    min-width: 0 !important;
    flex-basis: 100% !important;
}

@media (max-width: 640px) {
    .asb-progress-step-label {
        font-size: 11px;
    }

    .asb-progress-step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .asb-step-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .asb-nav-button {
        width: 100%;
    }
}

.asb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 37, 69, 0.85);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.asb-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 1;
}

.asb-modal-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease 0.2s both;
}

.asb-modal-icon svg {
    display: inline-block;
}

.asb-modal-title {
    font-family: 'Playfair Display', serif;
    color: #0B2545;
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.asb-modal-message {
    color: #192026;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.asb-modal-close-btn {
    background: #E0B253;
    color: #ffffff;
    border: 2px solid #E0B253;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.asb-modal-close-btn:hover {
    background: transparent;
    color: #E0B253;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 178, 83, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 1024px) {
    #asb-booking-form-container .asb-booking-form-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    #asb-booking-form-container .asb-booking-form {
        width: 100%;
    }

    /* Ensure payment section maintains full width on desktop */
    .asb-form-steps[data-step="4"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .asb-form-steps[data-step="4"] .asb-payment-section {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Override WordPress container constraints on desktop */
    .eits-booking-page-content .container {
        max-width: 100% !important;
    }

    .eits-booking-page-content .asb-booking-form-container {
        max-width: 1200px !important;
        width: 100% !important;
    }

    .eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Override container width for booking form - matching WordPress CSS */
.eits-booking-page-content .asb-booking-form-container {
    max-width: 1200px !important;
}

#asb-booking-form-container .asb-booking-form-container {
    max-width: 1200px !important;
}

/* Center the booking form container */
.eits-booking-page-content #asb-booking-form-container {
    display: flex;
    justify-content: center;
}

.eits-booking-page-content .asb-booking-form-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Ensure payment section respects the same container width constraints */
.eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

#asb-booking-form-container .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] .asb-payment-section {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Ensure form body and steps maintain full width for payment step */
.eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body {
    max-width: 100% !important;
    width: 100% !important;
}

.eits-booking-page-content .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#asb-booking-form-container .asb-booking-form-container .asb-booking-form .asb-form-body .asb-form-steps[data-step="4"] {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 640px) {
    .asb-modal-content {
        padding: 30px 20px;
    }

    .asb-modal-title {
        font-size: 24px;
    }

    .asb-modal-message {
        font-size: 14px;
    }

    .asb-modal-icon svg {
        width: 50px;
        height: 50px;
    }
}

/* Terms & Conditions Section */
.asb-terms-section {
    width: 100%;
    text-align: center;
}

.asb-terms-section h3 {
    color: #0B2545;
    font-size: 22px;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.asb-terms-section .asb-step-description {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.asb-terms-content {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.asb-terms-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #E0B253;
}

.asb-terms-box:last-of-type {
    margin-bottom: 24px;
}

.asb-terms-box h4 {
    color: #0B2545;
    font-size: 18px;
    margin: 0 0 16px 0;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.asb-terms-box p {
    margin: 0 0 6px 0;
    line-height: 1.6;
    color: #333;
}

.asb-terms-box p:last-child {
    margin-bottom: 0;
}

.asb-fees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.asb-fees-table thead {
    background: #0B2545;
    color: white;
}

.asb-fees-table thead th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.asb-fees-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.asb-fees-table tbody tr:last-child td {
    border-bottom: none;
}

.asb-fees-table tbody td:last-child {
    font-weight: 600;
    color: #E0B253;
    text-align: right;
}

.asb-terms-acceptance {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid #E0B253;
}

.asb-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.asb-checkbox-label input[type="checkbox"] {
    margin: 4px 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #E0B253;
}

.asb-checkbox-label span {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.asb-terms-accepted {
    color: #4caf50;
    font-weight: 600;
}

#asb-terms-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
}

#asb-terms-continue:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .asb-terms-content {
        padding: 16px;
    }

    .asb-terms-box {
        padding: 16px;
    }

    .asb-terms-box h4 {
        font-size: 16px;
    }

    .asb-fees-table {
        font-size: 13px;
    }

    .asb-fees-table thead th,
    .asb-fees-table tbody td {
        padding: 8px;
    }

    .asb-checkbox-label span {
        font-size: 14px;
    }
}

@media (max-width: 580px) {
    .asb-fees-table {
        display: block;
        overflow-x: auto;
    }

    .asb-fees-table thead {
        display: none;
    }

    .asb-fees-table tbody,
    .asb-fees-table tr,
    .asb-fees-table td {
        display: block;
        width: 100%;
    }

    .asb-fees-table tr {
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 8px;
    }

    .asb-fees-table td {
        text-align: left !important;
        padding: 8px 0;
        border: none;
    }

    .asb-fees-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        color: #0B2545;
    }

    .asb-fees-table td:last-child {
        font-size: 16px;
    }
}


/*
 * === Fix for Narrow Payment Form ===
 * When the payment step is active, a class is added via JS to the form.
 * This ensures the form expands to the full width available within its flex container.
 */
.asb-booking-form.asb-payment-step-active {
    width: 100%;
    flex: 1;
}

/*
 * === Trip Type & Direction Radio Cards ===
 */
.asb-trip-type-options,
.asb-trip-direction-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.asb-radio-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.asb-radio-card:hover {
    border-color: #E0B253;
    box-shadow: 0 4px 12px rgba(224, 178, 83, 0.15);
}

.asb-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.asb-radio-card input[type="radio"]:checked ~ .asb-radio-card-content {
    color: #0B2545;
}

.asb-radio-card input[type="radio"]:checked ~ .asb-radio-card-content::before {
    content: '✓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #E0B253;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.asb-radio-card input[type="radio"]:checked {
    border-color: #E0B253;
}

.asb-radio-card:has(input[type="radio"]:checked) {
    border-color: #E0B253;
    background: #FFFBF5;
    box-shadow: 0 4px 12px rgba(224, 178, 83, 0.2);
}

.asb-radio-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-right: 50px;
}

.asb-radio-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 8px;
    display: block;
}

.asb-radio-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .asb-radio-card {
        padding: 16px;
    }

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

    .asb-radio-card-description {
        font-size: 13px;
    }
}
