/* ============================================================
   RED ELEPHANT TRAVEL — Next Level Booking Modal
   ============================================================ */

/* ── Overlay ── */
.re-booking-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: reOverlayFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.re-booking-overlay.active {
    display: flex;
}

@keyframes reOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Modal Box ── */
.re-booking-modal {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: reModalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes reModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

/* ── Sidebar (Desktop Only) ── */
.re-booking-sidebar {
    width: 35%;
    background-image: url('https://images.unsplash.com/photo-1546708973-b339540b5162?q=80&w=800&auto=format&fit=crop');
    /* Sri Lanka Tea/Nature */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
}

.re-booking-sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
}

.re-booking-sidebar-content {
    position: relative;
    z-index: 2;
}

.re-booking-sidebar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.re-booking-sidebar p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Main Content ── */
.re-booking-main {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 #fff;
}

.re-booking-main::-webkit-scrollbar {
    width: 6px;
}

.re-booking-main::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* ── Typography ── */
.re-desktop-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.re-subtitle {
    font-family: 'Outfit', sans-serif;
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.re-booking-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 15px;
    display: block;
}

/* ── Type Selector Grid ── */
.re-booking-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.re-booking-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.re-type-icon {
    color: #64748b;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.re-type-icon svg {
    width: 100%;
    height: 100%;
}

.re-type-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

.re-booking-type-btn:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.re-booking-type-btn.active {
    background: #ffffff;
    border-color: #c0392b;
    /* Brand Red */
    box-shadow: 0 0 0 1px #c0392b, 0 8px 20px rgba(192, 57, 43, 0.15);
}

.re-booking-type-btn.active .re-type-icon {
    color: #c0392b;
    transform: scale(1.1);
}

.re-booking-type-btn.active .re-type-label {
    color: #1e293b;
    font-weight: 600;
}

/* ── Form Inputs ── */
.re-form-row {
    margin-bottom: 20px;
}

.re-form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.re-booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.re-booking-form-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.re-booking-input {
    width: 100%;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* Fix for padding issue */
}

.re-booking-input:focus {
    background: #fff;
    border-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.05);
    outline: none;
}

.re-booking-input::placeholder {
    color: #94a3b8;
}

textarea.re-booking-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Select Dropdown Styling */
.re-select-wrapper {
    position: relative;
}

.re-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    rotate: 45deg;
    pointer-events: none;
    transition: all 0.2s;
}

select.re-booking-input {
    appearance: none;
    cursor: pointer;
}

select.re-booking-input:focus+.re-select-wrapper::after {
    border-color: #c0392b;
}

/* ── Submit Button ── */
.re-booking-submit-row {
    margin-top: 30px;
}

.re-booking-submit-btn {
    width: 100%;
    background: #1e293b;
    /* Dark Navy for premium feel */
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.2);
}

.re-booking-submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.re-booking-submit-btn:hover {
    background: #c0392b;
    /* Brand Red on Hover */
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(192, 57, 43, 0.3);
}

.re-booking-submit-btn:hover svg {
    transform: translateX(4px);
}

.re-booking-submit-btn:disabled {
    background: #94a3b8;
    transform: none;
    cursor: not-allowed;
}

.re-booking-phone-note {
    text-align: center;
    margin-top: 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
}

.re-booking-phone-note a {
    color: #c0392b;
    font-weight: 600;
    text-decoration: none;
}

/* ── Close Button ── */
.re-booking-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
    z-index: 10;
}

.re-booking-close:hover {
    background: #f1f5f9;
    color: #c0392b;
    transform: rotate(90deg);
}

.re-booking-close svg {
    width: 24px;
    height: 24px;
}

/* ── Success State ── */
.re-booking-success-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.re-booking-success-view h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #1e293b;
    margin: 20px 0 10px;
}

.re-booking-success-view p {
    font-family: 'Outfit', sans-serif;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.re-success-icon-anim {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 0 0 8px #f0fdf4;
}

.re-success-icon-anim svg {
    width: 40px;
    height: 40px;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.6s 0.3s forwards ease-out;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.re-success-close-btn {
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.re-success-close-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* ── Mobile Layout ── */
.re-booking-header-mobile {
    display: none;
    /* Desktop hidden */
}

@media (max-width: 768px) {
    .re-booking-modal {
        flex-direction: column;
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }

    .re-booking-sidebar {
        display: none;
        /* Hide sidebar image on mobile */
    }

    .re-booking-main {
        padding: 24px;
        width: 100%;
    }

    .re-desktop-title {
        display: none;
    }

    .re-booking-header-mobile {
        display: block;
        margin-bottom: 20px;
    }

    .re-booking-header-mobile h2 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 2rem;
        color: #1e293b;
        font-weight: 700;
    }

    .re-booking-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .re-form-row.two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .re-booking-close {
        top: 15px;
        right: 15px;
    }
}