﻿/* ================================
   BOOKING PAGE - PREMIUM REBUILD
   ================================ */

/* ================================
   BOOKING HERO
   ================================ */
.booking-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, var(--color-deep) 0%, var(--color-primary) 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.booking-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.booking-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.booking-hero h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.booking-hero p {
    font-size: 1.1rem;
    opacity: 1;
    color: #ffffff;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================
   WIZARD CONTAINER
   ================================ */
.wizard-section {
    padding: 3rem 0 5rem;
    background-color: var(--color-bg);
}

.wizard-container {
    max-width: 680px;
    margin: -2.5rem auto 0;
    background: var(--color-white);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
}

/* ================================
   PROGRESS BAR (ANIMATED LINE)
   ================================ */
.wizard-progress {
    position: relative;
    margin-bottom: 2.5rem;
}

.progress-track {
    height: 4px;
    background: #e8e8e8;
    border-radius: 100px;
    position: absolute;
    top: 18px;
    left: 28px;
    right: 28px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 100px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.progress-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
    cursor: default;
    padding: 0;
}

.dot-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-dot.active .dot-number {
    background: var(--color-primary);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(195, 17, 12, 0.3);
}

.progress-dot.completed .dot-number {
    background: var(--color-deep);
    color: white;
}

.dot-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #aaa;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.progress-dot.active .dot-label {
    color: var(--color-primary);
}

.progress-dot.completed .dot-label {
    color: var(--color-deep);
}

/* ================================
   WIZARD STEPS (SLIDE ANIMATION)
   ================================ */
.wizard-step {
    display: none;
    animation: stepFadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(195, 17, 12, 0.08), rgba(195, 17, 12, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.step-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* ================================
   FORM LAYOUT
   ================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Line-based inputs (inherited from global.css, reinforced here) */
.wizard-form .form-group input,
.wizard-form .form-group select,
.wizard-form .form-group textarea {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.2);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
    color: var(--color-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wizard-form .form-group input:focus,
.wizard-form .form-group select:focus,
.wizard-form .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    box-shadow: 0 2px 0 0 var(--color-primary);
}

.wizard-form .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Error state */
.wizard-form .form-group input.error,
.wizard-form .form-group select.error {
    border-bottom-color: #dc2626;
}

.error-message {
    display: block;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.35rem;
    min-height: 1.1em;
}

/* Checkbox grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.checkbox-item:hover {
    border-color: var(--color-primary);
    background: rgba(207, 107, 86, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.checkbox-item input[type="checkbox"]:checked+span {
    color: var(--color-primary);
    font-weight: 400;
}

.checkbox-item input[type="checkbox"]:checked~span i {
    color: var(--color-primary);
}

/* ================================
   NAVIGATION BUTTONS
   ================================ */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.wizard-nav .btn {
    min-width: 140px;
    padding: 0.85rem 1.75rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wizard-nav .btn-secondary {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
}

.wizard-nav .btn-secondary:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.wizard-nav .btn-primary {
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(195, 17, 12, 0.25);
}

.wizard-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 17, 12, 0.35);
}

.booking-consent {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

.booking-consent a {
    color: var(--color-primary);
    font-weight: 400;
    text-decoration: none;
}

.booking-consent a:hover {
    text-decoration: underline;
}

/* ================================
   REVIEW STEP SUMMARY CARDS
   ================================ */
.booking-summary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.summary-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.summary-card h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-deep);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-card h4 i {
    font-size: 1rem;
    color: var(--color-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
}

.summary-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text);
    text-align: right;
    word-break: break-word;
}

/* Review notice */
.review-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(195, 17, 12, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(195, 17, 12, 0.1);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1.5;
}

.review-notice i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ================================
   POPUP OVERLAY (SUCCESS / ERROR)
   ================================ */
.booking-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-popup-overlay.active {
    opacity: 1;
}

.booking-popup {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-popup-overlay.active .booking-popup {
    transform: scale(1);
}

.booking-popup-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.booking-popup-title {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.6rem;
}

.booking-popup-message {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.booking-popup-close {
    min-width: 120px;
    padding: 0.75rem 2rem;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .booking-hero {
        padding: 7rem 0 2.5rem;
    }

    .booking-hero h2 {
        font-size: 1.75rem;
    }

    .wizard-container {
        margin: -2.5rem 1rem 0;
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .dot-label {
        font-size: 0.65rem;
    }

    .dot-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .progress-track {
        top: 14px;
        left: 20px;
        right: 20px;
    }

    .step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .step-header h3 {
        font-size: 1.25rem;
    }

    .wizard-nav .btn {
        min-width: 110px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .summary-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .summary-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        padding: 1.5rem 1rem 1.25rem;
    }

    .booking-hero h2 {
        font-size: 1.5rem;
    }

    .booking-hero p {
        font-size: 0.95rem;
    }
}

/* ================================
   OTP VERIFICATION STEP (Step 5)
   ================================ */
.otp-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #1e40af;
    line-height: 1.6;
}

.otp-info-box i {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: #3b82f6;
}

.otp-info-box strong {
    font-weight: 500;
}

.otp-input-group {
    max-width: 280px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.otp-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    text-align: left;
}

.otp-input-group input#otpCode {
    width: 100%;
    padding: 0.85rem 1rem !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 2rem !important;
    letter-spacing: 0.75rem;
    text-align: center;
    font-family: monospace;
    color: var(--color-text);
    background: #f9f9f9 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none !important;
}

.otp-input-group input#otpCode:focus {
    outline: none;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
    background: #fff !important;
}

.otp-resend {
    text-align: center;
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
}

.btn-link:disabled {
    color: #aaa;
    cursor: not-allowed;
    text-decoration: none;
}

#otpError {
    display: block;
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.1em;
}