/* ═══════════════════════════════════════════════════════════════
   Clerio Booking Form — Premium Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────── */
.booking-header {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding: 0.875rem max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.booking-header__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.booking-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-header__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.booking-header__name {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.booking-header__logo {
    height: 36px;
    width: auto;
}

.booking-header__phone {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--brand-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.booking-header__phone:hover {
    opacity: 0.8;
}

/* ── Main Container ───────────────────────────────── */
.booking-main {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem max(1rem, env(safe-area-inset-left)) 4rem;
    padding-right: max(1rem, env(safe-area-inset-right));
}

.booking-container {
    width: 100%;
    max-width: 640px;
}

/* ── Progress Bar ─────────────────────────────────── */
.progress-bar {
    margin-bottom: 2rem;
}

.progress-bar__track {
    height: 4px;
    background: #e8ecf1;
    border-radius: 100px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: var(--brand-color);
    border-radius: 100px;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar__steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.progress-step__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ecf1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .progress-step__dot,
.progress-step.completed .progress-step__dot {
    background: var(--brand-color);
}

.progress-step__number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8c95a6;
    transition: color 0.3s;
}

.progress-step.active .progress-step__number,
.progress-step.completed .progress-step__number {
    color: #fff;
}

.progress-step__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8c95a6;
    transition: color 0.3s;
}

.progress-step.active .progress-step__label {
    color: var(--brand-color);
    font-weight: 600;
}

.progress-step.completed .progress-step__label {
    color: #1a1a2e;
}

/* ── Form Steps ───────────────────────────────────── */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ── Step Header ──────────────────────────────────── */
.step-header {
    margin-bottom: 1.75rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.step-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
}

/* ── Form Elements ────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-label svg {
    color: var(--brand-color);
    flex-shrink: 0;
}

.form-label__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.form-label__icon--pickup {
    background: var(--brand-color);
}

.form-label__icon--dropoff {
    background: #ef4444;
}

.required {
    color: #ef4444;
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 0.8125rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    /* 16px — prevents iOS auto-zoom on focus */
    font-family: inherit;
    color: #1a1a2e;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    -webkit-appearance: none;
    /* Prevent iOS styling quirks */
    appearance: none;
}

.form-input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-color-light);
}

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

.form-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-input--unit {
    margin-top: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    /* 16px — prevents iOS auto-zoom */
    border-radius: 8px;
    background: #f9fafb;
}

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

.form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
    width: 100%;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.form-row>.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.form-row>.form-group .field-description {
    flex: 1;
}

.form-row>.form-group .form-input {
    margin-top: auto;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

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

.address-input__icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.form-input--address {
    padding-right: 2.75rem;
}



/* ── Service Cards (Trip Type) ────────────────────── */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.service-cards--expanded {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {

    .service-cards,
    .service-cards--expanded {
        grid-template-columns: repeat(2, 1fr);
    }

    /* If odd number of cards, last one spans full width */
    .service-cards .service-card:last-child:nth-child(odd),
    .service-cards--expanded .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 380px) {

    .service-cards,
    .service-cards--expanded {
        grid-template-columns: 1fr;
    }
}

.service-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.service-card input {
    display: none;
}

.service-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.125rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
    justify-content: center;
}

.service-card input:checked+.service-card__inner {
    border-color: var(--brand-color);
    background: var(--brand-color-light);
    box-shadow: 0 0 0 3px var(--brand-color-light);
}

.service-card__inner:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.service-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    margin-bottom: 0.125rem;
}

.service-card__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a2e;
}

.service-card__desc {
    font-size: 0.6875rem;
    color: #6b7280;
}

/* ── Trip Mode Toggle ─────────────────────────────── */
.trip-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.trip-mode-option {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.trip-mode-option input {
    display: none;
}

.trip-mode-option__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    transition: all 0.2s;
}

.trip-mode-option input:checked+.trip-mode-option__label {
    border-color: var(--brand-color);
    background: var(--brand-color-light);
    color: var(--brand-color);
}

.trip-mode-option__label:hover {
    border-color: #cbd5e1;
}

/* ── Price Quote Card ─────────────────────────────── */
.price-quote {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid var(--brand-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.3s ease;
}

.price-quote__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(111, 194, 118, 0.2);
}

.price-quote__title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #166534;
}

.price-quote__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-color);
    background: rgba(111, 194, 118, 0.15);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

.price-quote__body {
    padding: 1rem 1.25rem;
}

.price-quote__breakdown {
    margin-bottom: 0.75rem;
}

.price-quote__line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #4b5563;
    padding: 0.25rem 0;
}

.price-quote__discount {
    color: var(--brand-color);
    font-weight: 600;
}

.price-quote__total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1.5px solid rgba(111, 194, 118, 0.2);
    font-weight: 700;
    font-size: 1rem;
}

.price-quote__amount {
    font-size: 1.375rem;
    font-weight: 800;
    color: #166534;
}

/* ── Field Description ────────────────────────────── */
.field-description {
    font-size: 0.75rem;
    color: #7a7c7f;
    margin-top: -0.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ── Payer Toggle ─────────────────────────────────── */
.payer-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.payer-option {
    cursor: pointer;
}

.payer-option input {
    display: none;
}

.payer-option__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.payer-option input:checked+.payer-option__inner {
    border-color: var(--brand-color);
    background: var(--brand-color-light);
    box-shadow: 0 0 0 3px var(--brand-color-light);
}

.payer-option__inner:hover {
    border-color: #cbd5e1;
}

.payer-option__icon {
    font-size: 1.5rem;
}

.payer-option__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a2e;
}

@media (max-width: 480px) {
    .payer-toggle {
        grid-template-columns: 1fr;
    }
}

/* ── Company Information Section ──────────────────── */
.company-info-section {
    background: #f9fafb;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #374151;
    margin-bottom: 1.25rem;
}

.company-info-header svg {
    color: var(--brand-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* ── Payment Options ──────────────────────────────── */
.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

.payment-options--single {
    grid-template-columns: 1fr;
}

.payment-option {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.payment-option input {
    display: none;
}

/* Remove default browser focus ring; use custom rounded styling instead */
.payment-option input:focus-visible+.payment-option__inner,
.payment-option:focus-within .payment-option__inner {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-color-light);
}

.payment-option__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    height: 100%;
    min-height: 80px;
}

.payment-option input:checked+.payment-option__inner {
    border-color: var(--brand-color);
    background: var(--brand-color-light);
}

.payment-option__inner:hover {
    border-color: #cbd5e1;
}

.payment-option__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.payment-option__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.payment-option__name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a2e;
    line-height: 1.3;
}

.payment-option__desc {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

/* ── Inline Toast (DoorDash-style) ───────────────── */
.booking-toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    animation: toastSlideDown 0.3s ease-out;
    position: relative;
}

.booking-toast--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.booking-toast__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.booking-toast__text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.booking-toast__close {
    background: none;
    border: none;
    color: #991b1b;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.booking-toast__close:hover {
    opacity: 1;
}

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

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

/* ── Confirmation Checkbox ────────────────────────── */
.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s;
}

.confirm-checkbox:hover {
    border-color: #cbd5e1;
}

.confirm-checkbox input {
    display: none;
}

.confirm-checkbox__mark {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s;
}

.confirm-checkbox input:checked~.confirm-checkbox__mark {
    background: var(--brand-color);
    border-color: var(--brand-color);
}

.confirm-checkbox__text {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ── Review Card ──────────────────────────────────── */
.review-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.review-section {
    padding: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

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

.review-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.review-section__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.review-edit-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.review-edit-btn:hover {
    background: var(--brand-color-light);
}

/* Review Route */
.review-route {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 0;
}

.review-route__point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.review-route__marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.review-route__marker--pickup {
    background: var(--brand-color);
}

.review-route__marker--dropoff {
    background: var(--brand-color-secondary);
}

.review-route__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.review-route__address {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a2e;
}

.review-route__connector {
    width: 2px;
    height: 16px;
    background: #e2e8f0;
    margin-left: 11px;
}

.review-meta {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Review Schedule */
.review-schedule {
    display: flex;
    gap: 1.5rem;
}

.review-schedule__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* Review Facility (vertical stacked) */
.review-facility {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.review-facility__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.4;
}

.review-facility__item svg {
    flex-shrink: 0;
}

.review-facility__item:first-child {
    font-weight: 700;
    color: #1a1a2e;
}

/* Review Passenger */
.review-passenger {
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.75;
}

.review-special {
    font-size: 0.8125rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

/* Review Price */
.review-section--price {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

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

.review-price__label {
    font-weight: 600;
    color: #166534;
}

.review-price__amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #166534;
}

/* ── Buttons ──────────────────────────────────────── */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn--primary {
    background: var(--brand-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(111, 194, 118, 0.3);
}

.btn--primary:hover {
    background: var(--brand-color-hover);
    box-shadow: 0 4px 16px rgba(111, 194, 118, 0.4);
    transform: translateY(-1px);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--primary:disabled {
    background: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn--secondary {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e2e8f0;
}

.btn--secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn--submit {
    padding: 0.9375rem 2.5rem;
    font-size: 1rem;
}

/* ── Spinner ──────────────────────────────────────── */
.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

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

/* ── Success Screen ───────────────────────────────── */
/* ── Success Overlay (modal) ──────────────────────── */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.success-overlay__card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.35s ease;
    cursor: default;
}

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

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

.success-overlay .success-icon {
    margin-bottom: 1rem;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

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

.success-overlay .success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.success-overlay .success-message {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto 1rem;
}

.success-tap-hint {
    font-size: 0.75rem;
    color: #adb5bd;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── Footer ───────────────────────────────────────── */
/* Protected branding — do not override (like Tawk.to, Intercom, etc.) */
.booking-footer {
    text-align: center !important;
    padding: 1.5rem !important;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
    color: #9ca3af !important;
    font-size: 0.75rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    pointer-events: auto !important;
}

.booking-footer strong {
    color: #6b7280 !important;
}

.booking-footer a {
    pointer-events: auto !important;
    color: inherit !important;
}

/* ── Responsive ───────────────────────────────────── */

/* Tablets and smaller */
@media (max-width: 640px) {
    .booking-header__name {
        font-size: 1rem;
    }

    .booking-header__phone {
        font-size: 0.8125rem;
    }
}

/* Large phones */
@media (max-width: 480px) {
    .booking-header {
        padding: 0.75rem 1rem;
    }

    .booking-header__inner {
        gap: 0.25rem;
    }

    .booking-header__brand {
        gap: 0.375rem;
    }

    .booking-header__icon {
        font-size: 1.125rem;
    }

    .booking-header__name {
        font-size: 0.9375rem;
    }

    .booking-header__logo {
        height: 28px;
    }

    .booking-header__phone {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .booking-header__phone svg {
        width: 14px;
        height: 14px;
    }

    .booking-main {
        padding: 1rem 1rem 3rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step-subtitle {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 48px;
        /* iOS HIG touch target */
    }

    .step-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .step-actions>div:empty {
        display: none;
    }

    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .review-schedule {
        flex-direction: column;
        gap: 0.5rem;
    }

    .progress-step__label {
        font-size: 0.625rem;
    }

    .progress-step__dot {
        width: 28px;
        height: 28px;
    }

    .service-card__inner {
        padding: 0.875rem 0.5rem;
    }

    .form-label {
        font-size: 0.8125rem;
    }

    .confirm-checkbox {
        padding: 0.875rem;
    }

    .review-section {
        padding: 1rem;
    }

    .price-quote__header {
        padding: 0.75rem 1rem;
    }

    .price-quote__body {
        padding: 0.875rem 1rem;
    }
}

/* Small phones (iPhone SE, Galaxy S series compact) */
@media (max-width: 375px) {
    .booking-header__name {
        font-size: 0.8125rem;
        max-width: 110px;
    }

    .booking-header__phone {
        font-size: 0.6875rem;
    }

    .booking-main {
        padding: 0.875rem 0.875rem 3rem;
    }

    .step-title {
        font-size: 1.125rem;
    }

    .progress-step__label {
        display: none;
    }

    .form-input {
        padding: 0.75rem 0.875rem;
    }

    .service-card__inner {
        padding: 0.75rem 0.375rem;
    }

    .service-card__name {
        font-size: 0.8125rem;
    }

    .service-card__icon {
        width: 36px;
        height: 36px;
    }
}

/* ── Google Places Autocomplete Overrides ──────────── */
.pac-container {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

.pac-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    border-top: 1px solid #f3f4f6;
    text-decoration: none;
}

.pac-item,
.pac-item *,
.pac-item:hover,
.pac-item:active,
.pac-item:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background: #f9fafb;
}

.pac-item-selected {
    background: var(--brand-color-light) !important;
}

.pac-item-query {
    color: #1a1a2e;
    font-weight: 500;
}

.pac-matched {
    color: var(--brand-color);
    font-weight: 600;
}

.pac-icon {
    display: none;
}

.pac-logo::after {
    display: none !important;
}

/* ── Smart Pickup Time Suggestion Banner ───────────── */
.smart-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    animation: slideInSuggestion 0.3s ease-out;
}

@keyframes slideInSuggestion {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.smart-suggestion__icon {
    flex-shrink: 0;
    color: #16a34a;
    margin-top: 0.125rem;
}

.smart-suggestion__content {
    flex: 1;
    min-width: 0;
}

.smart-suggestion__text {
    font-size: 0.8125rem;
    color: #14532d;
    line-height: 1.5;
    margin: 0;
}

.smart-suggestion__text strong {
    color: #15803d;
    font-weight: 700;
}

.smart-suggestion__meta {
    display: block;
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.smart-suggestion__btn {
    flex-shrink: 0;
    align-self: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #16a34a;
    border: none;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.smart-suggestion__btn:hover {
    background: #15803d;
}

/* ── Price Breakdown (Step 4) ──────────────────────── */
.price-breakdown {
    padding: 0.75rem 0 0;
}

.price-breakdown__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: #4b5563;
}

.price-breakdown__discount {
    color: #059669;
    font-weight: 600;
}

.price-breakdown__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.price-breakdown__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #111827;
}

.price-breakdown__amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #166534;
}

/* ── Price Badge ───────────────────────────────────── */
.price-badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 0.125rem 0.5rem;
}

/* ── Mobile: Smart Suggestion ──────────────────────── */
@media (max-width: 640px) {
    .smart-suggestion {
        flex-direction: column;
        gap: 0.5rem;
    }

    .smart-suggestion__btn {
        align-self: flex-start;
    }

    .price-breakdown__line {
        font-size: 0.75rem;
    }

    .price-breakdown__total {
        font-size: 0.875rem;
    }

    .price-breakdown__amount {
        font-size: 1.125rem;
    }
}