/**
 * Atlas Booking Manager – Frontend styles
 * Developer: MogaWeb par Said Fadli
 */

:root {
    --aqb-primary: #1e3a5f;
    --aqb-accent: #FF9800;
    --aqb-accent-hover: #F57C00;
    --aqb-primary-light: #2c3e50;
    --aqb-border: #ddd;
    --aqb-font-family: Arial, Helvetica, sans-serif;
    --aqb-font-size: 14px;
    --aqb-font-size-h2: 28px;
    --aqb-font-size-h3: 18px;
    --aqb-font-size-label: 14px;
    --aqb-font-size-input: 14px;
    --aqb-font-size-button: 16px;
    --aqb-font-size-body: 15px;
    --aqb-radius: 10px;
    --aqb-transition: 0.2s ease;
}

/* Font and size from Apparence > Formulaire (overridden by inline style) */
.aqb-wrapper {
    font-family: var(--aqb-font-family);
    font-size: var(--aqb-font-size);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: hidden;
}
.aqb-wrapper .form-label { font-size: var(--aqb-font-size-label) !important; }
.aqb-wrapper .form-input { font-size: var(--aqb-font-size-input) !important; }
.aqb-wrapper .slot-msg,
.aqb-wrapper .pickup-option,
.aqb-wrapper .aqb-label-text { font-size: var(--aqb-font-size) !important; }
.aqb-wrapper .aqb-label-text,
.quad-control .aqb-label-text { color: #1a1a1a; }

/* Grid: 2 columns desktop (1.5fr 1fr), payment area in col1 row2; mobile: single column, recap then PayPal */
.booking-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: start;
}
.booking-controls {
    grid-column: 1;
    grid-row: 1;
}
.booking-sidebar {
    grid-column: 2;
    grid-row: 1 / -1;
}

@media (max-width: 900px) {
    .booking-container {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .booking-controls,
    .booking-sidebar {
        grid-column: 1;
        grid-row: auto;
    }
    .booking-controls {
        order: 1;
    }
    .booking-sidebar {
        order: 2;
    }
    /* Step 1 mobile: payment (1), quantity (2), date (3), time (4), pickup (5), button (6) */
    #step-1 {
        display: flex;
        flex-direction: column;
    }
    #step-1 .aqb-mobile-payment-wrap {
        order: 1;
    }
    #step-1 .aqb-form-group-qty {
        order: 2;
    }
    #step-1 .aqb-form-group-date {
        order: 3;
    }
    #step-1 .aqb-form-group-time {
        order: 4;
    }
    #step-1 .aqb-form-group-pickup {
        order: 5;
    }
    #step-1 .btn-next {
        order: 6;
    }
    /* Mobile: both payment buttons on same line */
    .aqb-mobile-pay-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .aqb-mobile-pay-row .payment-item-btn {
        flex: 1;
        min-width: 0;
    }
    .aqb-mobile-pay-row .payment-btn-box {
        padding: 8px 10px;
        font-size: calc(var(--aqb-font-size-button, 16px) * 0.85) !important;
    }
}

/* Desktop: step-1 order date, time, quantity, pickup (mobile payment wrap hidden) */
@media (min-width: 901px) {
    #step-1 {
        display: block;
    }
    #step-1 .aqb-form-group-date {
        order: 0;
    }
    #step-1 .aqb-form-group-time {
        order: 0;
    }
    #step-1 .aqb-form-group-qty {
        order: 0;
    }
    #step-1 .aqb-form-group-pickup {
        order: 0;
    }
}

/* Sticky sidebar on desktop */
.booking-sidebar {
    position: sticky;
    top: 20px;
}

.order-summary-card {
    background: white;
    border: 1px solid var(--aqb-border);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.aqb-recap-frame {
    border: 2px solid var(--aqb-primary);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.12);
}
.aqb-recap-title {
    margin: 0;
    padding: 18px 20px;
    background: var(--aqb-primary);
    color: #fff;
    font-size: var(--aqb-font-size-h3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    border-radius: 8px 8px 0 0;
    min-height: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aqb-recap-frame .summary-body {
    padding: 14px 16px;
}
.aqb-recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.35;
    border-bottom: 1px solid #eee;
    min-height: 32px;
    box-sizing: border-box;
}
.aqb-recap-row:last-of-type {
    border-bottom: none;
}
.aqb-recap-row.recap-row-total {
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.aqb-recap-acompte {
    margin-top: 10px;
    padding: 10px 12px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 10px;
}
.aqb-recap-row.recap-row-pay {
    border: none;
    padding: 6px 0;
    color: #2e7d32;
    font-weight: 700;
}
.aqb-recap-reste {
    margin: 6px 0 0;
    font-size: 13px;
    color: #1b5e20;
    line-height: 1.35;
}
.booking-sidebar .summary-rows {
    margin-bottom: 8px;
}
.booking-sidebar .summary-row {
    padding: 6px 0;
    line-height: 1.35;
    font-size: var(--aqb-font-size);
    min-height: 28px;
}

/* In-form error message (replaces alert dialogs) */
.aqb-form-error {
    padding: 14px 18px;
    margin-bottom: 1rem;
    border-radius: var(--aqb-radius);
    background: #fff5f5;
    border: 1px solid #e57373;
    color: #c62828;
    font-size: var(--aqb-font-size);
    font-weight: 500;
    line-height: 1.4;
}

/* Form title + prices: dedicated block like pickup, centered title, prices below with effect */
.aqb-form-hero.aqb-form-title-block {
    border: 1px solid var(--aqb-border);
    border-radius: var(--aqb-radius);
    padding: 20px 16px;
    background: #fafafa;
    margin-bottom: 1.25rem;
    text-align: center;
}
.aqb-form-title-block .aqb-form-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
@media (min-width: 600px) {
    .aqb-form-title-block .aqb-form-title {
        font-size: 2rem;
    }
}
.aqb-form-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
}
/* Price cards: horizontal layout to use available width */
.aqb-price-card {
    display: flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 16px 24px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(30, 58, 95, 0.2);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    opacity: 0;
    animation: aqb-price-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.aqb-price-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: var(--aqb-primary);
}
.aqb-price-card-1 { animation-delay: 0.1s; }
.aqb-price-card-2 { animation-delay: 0.3s; }
/* Quad: two cards share width equally */
.aqb-form-prices .aqb-price-card:not(.aqb-price-card-single) { min-width: 140px; }
/* Single price: one centered card, uses space but not full width on large screens */
.aqb-price-card-single { flex: 1 1 auto; min-width: 180px; max-width: 360px; margin: 0 auto; }
.aqb-price-value {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.aqb-price-amount {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--aqb-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.aqb-price-currency {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--aqb-primary);
}
.aqb-price-card .aqb-form-price-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.aqb-pack-desc {
    display: block;
    width: 100%;
    font-size: 0.9em;
    color: #64748b;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(30, 58, 95, 0.06);
    opacity: 0;
    animation: aqb-price-entrance 0.5s ease-out 0.4s forwards;
}
@keyframes aqb-price-entrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Icon purge: header/sidebar only; allow .aqb-quad-type-icon in quantity */
.booking-header .aqb-icon-img,
.booking-header .dashicons,
.summary-body .aqb-icon-img,
.summary-body .dashicons {
    display: none !important;
}
.quad-control .aqb-quad-type-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: var(--aqb-primary);
}
.quad-control .aqb-quad-type-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.quad-control .aqb-icon-img:not(.aqb-quad-type-icon),
.quad-control .dashicons:not(.aqb-quad-type-icon) {
    display: none !important;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form inputs: reduced height, readable placeholder */
.form-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--aqb-border);
    border-radius: var(--aqb-radius);
    margin-bottom: 10px;
    font-size: var(--aqb-font-size-input);
    box-sizing: border-box;
    transition: border-color var(--aqb-transition), box-shadow var(--aqb-transition);
}
.form-input::placeholder {
    color: #5a5a5a;
    opacity: 1;
}
.form-input::-webkit-input-placeholder { color: #5a5a5a; opacity: 1; }
.form-input::-moz-placeholder { color: #5a5a5a; opacity: 1; }
.form-input:-ms-input-placeholder { color: #5a5a5a; opacity: 1; }
.form-input:focus {
    outline: none;
    border-color: var(--aqb-accent);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}
textarea.form-input {
    min-height: 80px;
    resize: vertical;
}
/* Date picker: modern integrated look */
.aqb-date-input {
    background: #fafafa;
    font-weight: 500;
}
.aqb-date-input:hover {
    background: #fff;
    border-color: #bbb;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group-phone {
    margin-bottom: 0.5rem;
}
.form-group-phone .form-input {
    margin-bottom: 8px;
}
.form-group-phone-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
.form-group-phone-inline .phone-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    width: 100%;
}
.aqb-phone-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}
.aqb-phone-input-wrap .form-input {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}
.aqb-phone-input-wrap.has-whatsapp-icon .form-input {
    padding-right: 44px;
}
.aqb-phone-input-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
}
.aqb-whatsapp-icon-inline {
    width: 32px;
    height: 32px;
}
.aqb-whatsapp-icon-inline svg {
    width: 18px;
    height: 18px;
}
.form-group-phone-inline .phone-input-row .aqb-phone-input-wrap {
    flex: 1;
    min-width: 0;
}
.form-group-phone-inline .whatsapp-check-inline {
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .form-group-phone-inline .phone-input-row {
        flex-wrap: wrap;
    }
    .form-group-phone-inline .phone-input-row .aqb-phone-input-wrap {
        width: 100%;
        min-width: 0;
    }
}
.aqb-whatsapp-icon-wrap {
    flex-shrink: 0;
    display: none;
}
.aqb-whatsapp-icon-wrap[style*="inline-flex"] {
    display: inline-flex !important;
}
.aqb-whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    transition: transform var(--aqb-transition), box-shadow var(--aqb-transition);
    text-decoration: none;
}
.aqb-whatsapp-icon:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
.aqb-whatsapp-icon svg {
    width: 22px;
    height: 22px;
}
.whatsapp-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
    transition: color var(--aqb-transition);
}
.whatsapp-check-inline {
    margin-top: 0;
}
.whatsapp-check:hover {
    color: var(--aqb-primary);
}
.whatsapp-check input {
    width: 18px;
    height: 18px;
    accent-color: #25D366;
}
.aqb-hidden {
    display: none !important;
}
/* Pick-up section */
.aqb-pickup-section {
    border: 1px solid var(--aqb-border);
    border-radius: var(--aqb-radius);
    padding: 14px;
    background: #fafafa;
}
.pickup-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.pickup-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #1a1a1a;
    transition: color var(--aqb-transition);
}
.pickup-option:hover {
    color: var(--aqb-accent);
}
.pickup-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--aqb-accent);
}
.pickup-meeting-wrap,
.pickup-custom-wrap {
    margin-top: 8px;
    transition: opacity var(--aqb-transition);
}
.pickup-meeting-wrap .form-label-inline,
.pickup-custom-wrap .form-label-inline {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.pickup-meeting-wrap .form-input,
.pickup-custom-wrap .form-input {
    margin-bottom: 0;
}
/* Details wrap: hidden when "own transport", visible when free/paid pickup chosen. */
.pickup-details-wrap.is-hidden {
    display: none !important;
    margin: 0;
    padding: 0;
    min-height: 0;
    overflow: hidden;
}
.pickup-details-wrap.is-visible {
    display: block;
    margin-top: 10px;
}
/* Mutual exclusivity: only one pick-up block visible. Use .is-visible / .is-hidden (set by JS). */
.pickup-custom-wrap {
    display: none;
}
.pickup-custom-wrap.is-visible {
    display: block !important;
}
.pickup-meeting-wrap.is-visible {
    display: block !important;
    margin-top: 8px;
}
.pickup-meeting-wrap.is-hidden {
    display: none !important;
}
.aqb-pickup-section .pickup-meeting-wrap,
.aqb-pickup-section .pickup-custom-wrap {
    margin-top: 8px;
    min-height: 0;
    overflow: visible;
}
.aqb-pickup-section .pickup-custom-wrap.is-hidden {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    min-height: 0;
    overflow: hidden !important;
    visibility: hidden !important;
}
.aqb-pickup-section .pickup-meeting-wrap.is-hidden {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    min-height: 0;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Buttons: primary (Suivant) and back – text centered, larger font */
.btn-next,
.btn-back,
.btn-checkout {
    min-height: 48px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--aqb-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: var(--aqb-font-size-button, 16px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.btn-next,
.btn-checkout {
    background: var(--aqb-primary);
    color: white;
    width: auto;
    min-width: 160px;
    max-width: 240px;
    transition: background var(--aqb-transition), transform 0.15s ease;
}
.btn-next:hover,
.btn-checkout:hover {
    background: var(--aqb-primary-light);
}
/* Next button: high-contrast accent (always visible) */
.btn-next-accent {
    background: var(--aqb-btn-next, var(--aqb-accent)) !important;
    color: #fff !important;
    border: 2px solid var(--aqb-btn-next, var(--aqb-accent));
    font-weight: 700;
}
.btn-next-accent:hover {
    background: var(--aqb-btn-next-hover, var(--aqb-accent-hover)) !important;
    border-color: var(--aqb-btn-next-hover, var(--aqb-accent-hover));
    transform: translateY(-1px);
}
.btn-next-accent:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.4);
}
@media (max-width: 900px) {
    .btn-next-accent {
        min-height: 52px;
        font-size: calc(var(--aqb-font-size-button, 16px) * 1.05);
    }
    .payment-item-btn .payment-btn-box {
        min-height: 52px;
        padding: 14px 16px;
    }
}

/* Back button: distinct color (muted blue-grey) */
.btn-back {
    background: var(--aqb-btn-back, #5a6c7d);
    color: #fff;
    font-size: var(--aqb-font-size-button, 16px);
    min-height: 48px;
    padding: 14px 28px;
    width: auto;
    min-width: 160px;
    max-width: 240px;
    font-weight: 700;
    border: 2px solid var(--aqb-btn-back-hover, #4a5c6d);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-back:hover {
    background: var(--aqb-btn-back-hover, #4a5c6d);
    border-color: var(--aqb-btn-back-hover, #4a5c6d);
    color: #fff;
}

/* Buttons row: step 1 centered; steps 2 & 3 each button at extreme edge */
.aqb-buttons-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}
.aqb-buttons-single {
    justify-content: center;
}
.aqb-buttons-single .btn-next,
.aqb-buttons-single .btn-checkout {
    margin: 0;
}
.aqb-buttons-dual {
    justify-content: space-between;
    width: 100%;
}
.aqb-buttons-dual .btn-back {
    margin-top: 0;
}

/* Quantity selector: ensure number is visible on desktop */
.quad-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px;
    border: 1px solid var(--aqb-border);
    border-radius: var(--aqb-radius);
}

.quad-control + .quad-control {
    margin-top: 10px;
}

/* Quantité section: any Quad/icons exactly 30px */
.quad-control .aqb-icon-img,
.quad-control .dashicons {
    width: 30px !important;
    height: 30px !important;
    font-size: 30px !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.quad-control .aqb-icon-img {
    object-fit: contain;
}

/* Icon + Label combination (Icons & Branding) */
.aqb-label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.aqb-label-with-icon .aqb-icon-img,
.aqb-label-with-icon .dashicons {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
}

.aqb-label-with-icon .aqb-icon-img {
    object-fit: contain;
    vertical-align: middle;
}
/* Icons in Quantité and Récapitulatif: exactly 35px, vertically centered */
.aqb-label-icon-small .aqb-icon-img,
.aqb-label-icon-small .dashicons {
    width: 35px !important;
    height: 35px !important;
    font-size: 35px !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aqb-label-icon-small {
    align-items: center;
}
.aqb-label-icon-small .aqb-icon-img {
    object-fit: contain;
    vertical-align: middle;
}
.summary-row-icon-small .aqb-icon-img,
.summary-row-icon-small .dashicons {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    font-size: 35px;
    line-height: 1;
    color: var(--aqb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.summary-row-icon-small {
    align-items: center;
}
.summary-row-icon-small .aqb-icon-img {
    object-fit: contain;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--aqb-border);
    border-radius: 4px;
    overflow: visible;
}

.qty-selector button,
.qty-selector .qty-btn {
    font-size: var(--aqb-font-size-button, 16px);
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: none;
    background: #f9f9f9;
    cursor: pointer;
    line-height: 1;
    color: var(--aqb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--aqb-transition), transform 0.15s ease;
}
.qty-selector button:hover,
.qty-selector .qty-btn:hover {
    background: #eee;
}
.qty-selector .qty-btn:active .qty-btn-icon {
    animation: aqb-qty-bounce 0.3s ease;
}
@keyframes aqb-qty-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.qty-btn-icon {
    display: inline-block;
    transition: transform var(--aqb-transition);
}
.qty-selector .qty-btn:hover .qty-btn-icon {
    animation: aqb-qty-pulse 0.6s ease infinite;
}
@keyframes aqb-qty-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

.qty-selector input {
    width: 48px;
    min-width: 48px;
    height: 44px;
    padding: 0 4px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--aqb-border);
    border-right: 1px solid var(--aqb-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--aqb-primary);
    background: #fff;
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Time section: dedicated block like pickup/title */
.aqb-time-section {
    border: 1px solid var(--aqb-border);
    border-radius: var(--aqb-radius);
    padding: 20px 16px;
    background: #fafafa;
}
.aqb-time-section .aqb-time-section-label {
    display: block;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    animation: aqb-price-fade 0.5s ease-out;
}
.aqb-time-section .time-slots-grid,
.aqb-time-section .aqb-slots-grid {
    margin: 0;
}

/* Time slots: Gaming/Premium Adventure – glassmorphism, glow, gradient selected */
.aqb-slots-grid.time-slots-grid,
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.slot-item {
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.slot-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--aqb-font-size-button, 16px);
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.slot-item:hover span {
    transform: scale(1.05);
    border-color: #ff6b00;
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.35), 0 0 20px rgba(255, 107, 0, 0.2);
}

.slot-item input:focus + span {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

.slot-item input:checked + span,
.slot-item.selected span {
    background: linear-gradient(145deg, #ff6b00 0%, #e55a00 50%, #cc4d00 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: aqb-slot-pulse 2s ease-in-out infinite;
}

.slot-item input:checked:hover + span,
.slot-item.selected:hover span {
    box-shadow: 0 8px 28px rgba(255, 107, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes aqb-slot-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1.05); }
}

@keyframes aqb-slot-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(255, 107, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 8px 28px rgba(255, 107, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

/* Disabled / full slot */
.slot-item.slot-disabled {
    pointer-events: none;
    cursor: default;
}

.slot-item.slot-disabled span {
    background: rgba(200, 200, 200, 0.5);
    color: #888;
    text-decoration: line-through;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

/* Pop animation when slot is clicked (overrides pulse while active) */
.slot-item.slot-pop span {
    animation: aqb-slot-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered entrance when slots load */
.aqb-slots-loaded .slot-item {
    animation: aqb-slot-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.aqb-slots-loaded .slot-item:nth-child(1) { animation-delay: 0.02s; }
.aqb-slots-loaded .slot-item:nth-child(2) { animation-delay: 0.04s; }
.aqb-slots-loaded .slot-item:nth-child(3) { animation-delay: 0.06s; }
.aqb-slots-loaded .slot-item:nth-child(4) { animation-delay: 0.08s; }
.aqb-slots-loaded .slot-item:nth-child(5) { animation-delay: 0.10s; }
.aqb-slots-loaded .slot-item:nth-child(6) { animation-delay: 0.12s; }
.aqb-slots-loaded .slot-item:nth-child(7) { animation-delay: 0.14s; }
.aqb-slots-loaded .slot-item:nth-child(8) { animation-delay: 0.16s; }
.aqb-slots-loaded .slot-item:nth-child(9) { animation-delay: 0.18s; }
.aqb-slots-loaded .slot-item:nth-child(10) { animation-delay: 0.20s; }
.aqb-slots-loaded .slot-item:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes aqb-slot-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slot-msg {
    padding: 14px 16px;
    color: #64748b;
    font-size: 14px !important;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed var(--aqb-border);
}

/* Summary */
.summary-body {
    margin: 0;
}

.summary-row {
    margin-bottom: 8px;
}
.summary-row-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.summary-row-icon .aqb-icon-img,
.summary-row-icon .dashicons {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    font-size: 35px;
    line-height: 1;
    color: var(--aqb-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.summary-row-icon .aqb-icon-img {
    object-fit: contain;
}
.summary-row-icon {
    align-items: center;
}
.summary-rows {
    margin-bottom: 4px;
}
.summary-line {
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.summary-total-original {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aqb-primary);
}
.summary-grand-total {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aqb-primary);
}
.summary-balance {
    font-size: 14px;
    color: #1a1a1a;
}
.summary-pay-now {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aqb-primary);
    margin-top: 4px;
}

.divider {
    height: 1px;
    background: var(--aqb-border);
    margin: 12px 0;
}
/* Totals block at bottom of sidebar (Total, Reste, Montant) */
.summary-totals-block {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--aqb-border);
}
.summary-totals-block .summary-line {
    margin-bottom: 8px;
}
.summary-totals-block .summary-total-original {
    font-size: 1.05rem;
}
.summary-totals-block .summary-pay-now {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--aqb-border);
    font-size: 1.1rem;
}

.deposit-box {
    padding: 0;
    margin: 12px 0;
    border: none;
    background: transparent;
}
/* ========== SIDEBAR: lisibilité ========== */
.booking-sidebar .summary-body,
.booking-sidebar .summary-row,
.booking-sidebar .pay-opt-label {
    font-size: var(--aqb-font-size) !important;
    line-height: 1.5;
}
.booking-sidebar .summary-row { padding: 6px 0; line-height: 1.35; min-height: 28px; }
.booking-sidebar .order-summary-card h3 {
    margin: 0;
}

/* ========== SIDEBAR: Mode de Paiement = petits boutons sur une ligne ========== */
.booking-sidebar .payment-toggle-wrap,
/* Payment methods: perfect symmetry – flex, equal width/height, one row on mobile */
.aqb-payment-methods-container {
    display: flex;
    gap: 10px;
}
.aqb-payment-methods-container .payment-item-btn {
    flex: 1;
    min-width: 0;
    min-height: 80px;
    cursor: pointer;
    margin: 0;
}
.aqb-payment-methods-container .payment-btn-box {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px !important;
}
.aqb-payment-methods-container .payment-btn-box .btn-icon {
    display: block;
    margin: 0 auto 4px;
    flex-shrink: 0;
    line-height: 0;
    color: inherit;
}
.aqb-payment-methods-container .payment-btn-box .btn-icon i {
    font-size: 1.35em;
    display: block;
}
.aqb-payment-methods-container .payment-btn-box .btn-icon svg {
    display: block;
    margin: 0 auto;
}
.aqb-payment-methods-container .payment-btn-box .btn-title {
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.aqb-payment-methods-container .payment-btn-box .btn-desc {
    font-size: 10px !important;
    color: #64748b;
    line-height: 1.2;
}

.booking-sidebar .pay-opt-toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.booking-sidebar .payment-buttons-row {
    display: flex;
    gap: 10px;
}
.booking-sidebar .payment-item-btn {
    cursor: pointer;
    margin: 0;
    min-width: 0;
}
.booking-sidebar .payment-item-btn input[type="radio"],
.booking-sidebar .pay-opt-toggles input[name="pay_opt"],
.payment-item-btn input {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.booking-sidebar .payment-btn-box {
    padding: 12px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    background: #f8f8f8;
    color: #1a1a1a;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: var(--aqb-font-size-button, 16px) !important;
    animation: aqb-pay-btn-idle 2.5s ease-in-out infinite;
}
.booking-sidebar .payment-btn-box .btn-icon {
    display: block;
    margin: 0 auto 4px;
    flex-shrink: 0;
    line-height: 0;
    color: inherit;
}
.booking-sidebar .payment-btn-box .btn-icon svg {
    display: block;
    margin: 0 auto;
}
.booking-sidebar .payment-btn-box .btn-title {
    display: block;
    font-weight: 600;
    font-size: 12px !important;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.booking-sidebar .payment-btn-box .btn-desc {
    font-size: 10px !important;
    font-weight: 500;
    color: #64748b;
    margin-top: 0;
    line-height: 1.2;
}
@keyframes aqb-pay-btn-idle {
    0%, 100% { box-shadow: 0 0 0 rgba(30, 58, 95, 0); }
    50% { box-shadow: 0 0 8px rgba(30, 58, 95, 0.15); }
}
.booking-sidebar .payment-btn-box .aqb-hidden-amount,
.booking-sidebar .payment-btn-box .btn-value.aqb-hidden-amount {
    display: none !important;
}
.booking-sidebar .payment-item-btn input:checked + .payment-btn-box {
    animation: none;
}
.booking-sidebar .payment-item-btn:hover .payment-btn-box {
    border-color: var(--aqb-accent);
    background: #fff5eb;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}
/* État actif = bleu primaire */
.booking-sidebar .payment-item-btn input:checked + .payment-btn-box,
.booking-sidebar .payment-item-btn.active .payment-btn-box {
    background: var(--aqb-primary, #1e3a5f) !important;
    color: #FFF !important;
    border-color: var(--aqb-primary, #1e3a5f) !important;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
    transform: scale(1);
}
.booking-sidebar .payment-item-btn input:checked + .payment-btn-box .btn-title,
.booking-sidebar .payment-item-btn input:checked + .payment-btn-box .btn-desc,
.booking-sidebar .payment-item-btn.active .payment-btn-box .btn-title,
.booking-sidebar .payment-item-btn.active .payment-btn-box .btn-desc {
    color: #FFF !important;
}

/* ========== SIDEBAR: Recap rows (compact) ========== */
.booking-sidebar .summary-badges-container {
    margin-top: 12px;
}
.booking-sidebar .aqb-badge {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    border: 1px solid #e0e6ed !important;
    font-size: 14px !important;
    min-height: 40px;
    box-sizing: border-box;
    line-height: 1.35;
}
.booking-sidebar .aqb-badge-pay-now {
    font-size: 16px !important;
    font-weight: 700 !important;
    border-width: 2px !important;
    border-color: #2e7d32 !important;
    margin-top: 8px !important;
}
.booking-sidebar .aqb-badge:last-child {
    margin-bottom: 0 !important;
}
.booking-sidebar .aqb-badge span:first-child {
    color: inherit;
}
.booking-sidebar .aqb-badge.badge-neutral {
    background: #f5f5f5 !important;
    color: #333 !important;
}
.booking-sidebar .aqb-badge.badge-info {
    background: #e8f4fc !important;
    color: #1565c0 !important;
}
.booking-sidebar .aqb-badge.badge-success {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}
.booking-sidebar .aqb-badge.badge-warning {
    background: #fff3e0 !important;
    color: #b45309 !important;
}

.summary-footer {
    margin-top: 16px;
}
.summary-footer-step2 {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--aqb-border);
    width: 100%;
}
.aqb-step-payment {
    max-width: 480px;
    margin: 0 auto;
}
.aqb-step-payment #aqb-paypal-wrap,
.aqb-step-payment .aqb-agency-wrap {
    margin: 20px 0;
}

/* Mobile: payment method before date (show mobile wrap, hide sidebar payment) */
.aqb-mobile-payment-wrap {
    display: none;
    margin-bottom: 1.25rem;
}
@media (max-width: 900px) {
    .aqb-mobile-payment-wrap {
        display: block;
    }
    .aqb-sidebar-payment-wrap {
        display: none !important;
    }
}
.aqb-mobile-payment-wrap .pay-opt-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: var(--aqb-font-size-label);
    color: #1a1a1a;
}
.aqb-mobile-payment-wrap .payment-buttons-row {
    display: flex;
    gap: 8px;
}
.aqb-mobile-payment-wrap .payment-item-btn {
    flex: 1;
    min-width: 0;
}
.aqb-mobile-payment-wrap .payment-btn-box {
    padding: 10px 6px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    background: #f8f8f8;
    color: #1a1a1a;
    font-size: 12px !important;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    animation: aqb-pay-btn-idle 2.5s ease-in-out infinite;
    overflow: visible;
}
.aqb-mobile-payment-wrap .payment-btn-box .btn-icon i {
    font-size: 1.25em;
}
.aqb-mobile-payment-wrap .payment-item-btn input:checked + .payment-btn-box .btn-desc {
    color: rgba(255, 255, 255, 0.9);
}
.aqb-mobile-payment-wrap .payment-item-btn input:checked + .payment-btn-box {
    animation: none;
}
.aqb-mobile-payment-wrap .payment-item-btn:hover .payment-btn-box {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    border-color: var(--aqb-accent);
}
.aqb-mobile-payment-wrap .payment-item-btn input:checked + .payment-btn-box,
.aqb-mobile-payment-wrap .payment-item-btn.active .payment-btn-box {
    background: var(--aqb-primary) !important;
    color: #fff !important;
    border-color: var(--aqb-primary) !important;
}
.aqb-mobile-payment-wrap .payment-item-btn input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Floating recap bar (mobile only): amount + participants, hides when Récapitulatif in view */
.aqb-float-recap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: var(--aqb-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 10px 10px;
}
.aqb-float-recap .aqb-float-amount,
.aqb-float-recap .aqb-float-quantity {
    color: #fff;
}
@media (min-width: 901px) {
    .aqb-float-recap {
        display: none !important;
    }
}
/* Secure payment trust icons (Visa, Mastercard, SSL) */
.aqb-trust-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--aqb-border);
    font-size: 14px;
    color: #888;
}
.aqb-trust-icon {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color var(--aqb-transition), background var(--aqb-transition);
}
.aqb-trust-icon:hover {
    color: var(--aqb-primary);
    background: #eee;
}

.aqb-cgv-row {
    margin: 0 0 12px;
    font-size: 14px;
}

.aqb-cgv-row a {
    color: var(--aqb-accent);
    text-decoration: underline;
}

/* Agency payment: two buttons side by side (Email / WhatsApp) */
.aqb-agency-wrap {
    margin-top: 16px;
}
.aqb-agency-send-label {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 14px;
}
.aqb-agency-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
.aqb-btn-agency {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    font-size: var(--aqb-font-size-button, 16px);
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--aqb-transition), box-shadow var(--aqb-transition);
    -webkit-appearance: none;
    appearance: none;
}
.aqb-btn-agency-email {
    background: var(--aqb-primary);
    color: #fff;
    border-color: var(--aqb-primary);
}
.aqb-btn-agency-email:hover {
    background: var(--aqb-primary-light);
    border-color: var(--aqb-primary-light);
    transform: translateY(-1px);
}
.aqb-btn-agency-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.aqb-btn-agency-whatsapp:hover {
    background: #20bd5a;
    border-color: #20bd5a;
    transform: translateY(-1px);
}
.aqb-btn-agency:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
@media (max-width: 480px) {
    .aqb-agency-buttons-row {
        flex-direction: column;
    }
    .aqb-btn-agency {
        min-width: 100%;
    }
}

.aqb-error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* Thank-you page [atlas_thank_you] – font/size from Apparence > Page Merci */
.aqb-thank-you-container {
    font-family: var(--aqb-font-family);
    font-size: var(--aqb-font-size-body, var(--aqb-font-size));
    min-width: 0;
    max-width: 720px;
    margin: 2rem auto;
    padding: 24px 28px;
    background: #fff;
    border: 2px solid var(--aqb-primary);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.12);
}

.aqb-thank-you-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--aqb-primary);
}

.aqb-thank-you-logo {
    max-height: 54px;
    max-width: 180px;
    object-fit: contain;
}

.aqb-thank-you-company {
    font-size: var(--aqb-font-size-h2);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.aqb-thank-you-success {
    font-size: var(--aqb-font-size-h2);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.aqb-thank-you-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
    align-items: start;
    margin-bottom: 20px;
}

.aqb-thank-you-main-agency,
.aqb-thank-you-main-paid {
    grid-template-columns: 1fr;
}

@media (max-width: 640px) {
    .aqb-thank-you-main {
        grid-template-columns: 1fr;
    }
}

.aqb-thank-you-left {
    min-width: 0;
}

.aqb-thank-you-right {
    min-width: 0;
}

.aqb-thank-you-welcome {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid var(--aqb-accent);
    border-radius: 8px;
    color: #1a1a1a;
    line-height: 1.55;
    font-size: var(--aqb-font-size-body, var(--aqb-font-size));
}

.aqb-thank-you-greeting {
    margin: 0 0 8px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: var(--aqb-font-size-h3);
}

.aqb-thank-you-welcome-text {
    margin: 0;
    display: block;
    font-size: var(--aqb-font-size-body, var(--aqb-font-size));
}

.aqb-thank-you-status {
    margin: 0;
}

/* Thank-you centered layout */
.aqb-thank-you-centered {
    text-align: center;
}

.aqb-thank-you-centered .aqb-thank-you-header {
    justify-content: center;
}

.aqb-thank-you-centered .aqb-thank-you-left,
.aqb-thank-you-centered .aqb-thank-you-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aqb-thank-you-centered .aqb-thank-you-welcome,
.aqb-thank-you-centered .aqb-thank-you-status,
.aqb-thank-you-centered .aqb-thank-you-alert,
.aqb-thank-you-centered .aqb-payment-success-card,
.aqb-thank-you-centered .aqb-thank-you-email,
.aqb-thank-you-centered .aqb-thank-you-closing {
    text-align: center;
}

/* SVG icons - professional, animated */
.aqb-icon-svg {
    width: 1em;
    height: 1em;
    display: block;
}

@keyframes aqb-icon-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes aqb-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.aqb-status-icon-wrap,
.aqb-alert-icon-wrap,
.aqb-payment-success-icon-wrap {
    display: block;
    margin: 0 auto 20px;
}

.aqb-status-icon-wrap .aqb-icon-svg,
.aqb-alert-icon-wrap .aqb-icon-svg {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.aqb-payment-success-icon-wrap .aqb-icon-svg {
    width: 72px;
    height: 72px;
    margin: 0 auto;
}

.aqb-icon-animate {
    animation: aqb-icon-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.aqb-alert-icon-wrap.aqb-icon-animate {
    animation-delay: 0.25s;
    opacity: 0;
}

/* Status block - icon on own line, then text */
.aqb-status-block {
    display: block;
    padding: 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 24px;
}

.aqb-status-block .aqb-status-text {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 17px;
}

.aqb-status-block .aqb-status-done {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.aqb-status-agency {
    background: #eff6ff;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.aqb-status-agency .aqb-status-icon-wrap { color: #3b82f6; }

/* Payment success card */
.aqb-payment-success-card {
    padding: 28px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    text-align: center;
}

.aqb-payment-success-icon-wrap { color: #22c55e; }

.aqb-payment-success-type {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.aqb-payment-success-txn,
.aqb-payment-success-amount {
    margin: 0 0 6px;
    font-size: 15px;
    color: #1a1a1a;
}

.aqb-payment-success-amount {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 20px;
    color: #166534;
}

/* Alert block - icon on own line */
.aqb-thank-you-alert {
    display: block;
    margin-top: 20px;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    text-align: center;
}

.aqb-alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.aqb-alert-icon-wrap {
    color: #f59e0b;
    margin-bottom: 12px;
}

.aqb-alert-icon-wrap .aqb-icon-svg {
    width: 56px;
    height: 56px;
}

.aqb-alert-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.aqb-thank-you-section-label {
    margin: 0 0 10px;
    font-size: var(--aqb-font-size-h3);
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--aqb-accent);
}

.aqb-thank-you-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--aqb-border);
}

.aqb-thank-you-table th,
.aqb-thank-you-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--aqb-border);
    font-size: var(--aqb-font-size-body, var(--aqb-font-size));
    color: #1a1a1a;
}

.aqb-thank-you-table th {
    font-weight: 700;
    width: 42%;
    background: #f0f4f8;
    color: #1a1a1a;
    font-size: var(--aqb-font-size-label);
}

.aqb-thank-you-table tr:last-child th,
.aqb-thank-you-table tr:last-child td {
    border-bottom: none;
}

.aqb-thank-you-email {
    margin: 0;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.55;
}

.aqb-thank-you-closing {
    margin: 20px 0 0;
    padding: 16px 20px;
    background: #f0f4f8;
    border: 2px solid var(--aqb-primary);
    border-radius: 10px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

.aqb-thank-you-message {
    margin: 0 0 8px;
    font-size: 15px;
    color: #1a1a1a;
}

.aqb-thank-you-message-sub {
    margin: 0 0 12px;
    font-size: 14px;
    color: #1a1a1a;
}

.aqb-thank-you-actions {
    margin: 24px 0 0;
    padding-bottom: 32px;
    text-align: center;
}

.aqb-btn-home {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--aqb-primary) 0%, var(--aqb-primary-light) 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.25);
    transition: transform var(--aqb-transition), box-shadow var(--aqb-transition);
}

.aqb-btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.35);
}

.aqb-btn-print {
    display: inline-block;
    padding: 14px 32px;
    margin-right: 12px;
    background: transparent;
    color: var(--aqb-primary);
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid var(--aqb-primary);
    cursor: pointer;
    transition: transform var(--aqb-transition), background var(--aqb-transition), color var(--aqb-transition);
}

.aqb-btn-print:hover {
    background: var(--aqb-primary);
    color: #fff;
    transform: translateY(-2px);
}

@media print {
    .aqb-btn-print,
    .aqb-btn-home {
        display: none !important;
    }
}

.aqb-btn-whatsapp {
    display: inline-block;
    padding: 14px 28px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: transform var(--aqb-transition), box-shadow var(--aqb-transition);
    margin-right: 12px;
}

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

.aqb-wa-icon {
    margin-right: 6px;
}

.aqb-thank-you-wa-actions .aqb-btn-home {
    margin-left: 0;
}

.aqb-thank-you-link {
    color: var(--aqb-primary);
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
    font-size: 15px;
}
