/* --- 1. CORE VARIABLES & COMPACT THEME --- */
:root {
    /* Brand Palette */
    --primary: #0F172A;
    --accent: #2563EB;
    --gold: #F59E0B;
    
    /* Surfaces */
    --bg-page: #F1F5F9; /* Slightly darker to make white pop */
    --bg-card: #FFFFFF;
    --border-light: #E2E8F0;
    
    /* Text */
    --text-main: #1E293B;
    --text-muted: #64748B;
    
    /* Spacing - OPTIMIZED */
    --space-card-pad: 1.25rem; /* Reduced from 2rem */
    --space-gap: 0.85rem;      /* Reduced from 1.5rem */
    --input-height: 48px;      /* Standard touch target */

    /* Shadows & Animation */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. COMPACT LAYOUT --- */
.booking-hero {
    background: var(--primary);
    color: white;
    padding: 100px 0 40px; /* Reduced vertical height */
    text-align: center;
    /* Removed the extreme slant clip-path to save space */
    border-bottom: 4px solid var(--accent);
    margin-bottom: 1.5rem;
}

.booking-hero h1 {
    font-size: 1.8rem; /* Smaller, punchier */
    font-weight: 700;
    margin: 0;
}

.booking-hero p {
    color: #CBD5E1;
    font-size: 0.95rem;
    margin-top: 5px;
    display: none; /* Hide subtitle on mobile to save space */
}

@media (min-width: 768px) {
    .booking-hero p { display: block; }
    .booking-hero h1 { font-size: 2.2rem; }
}

.booking-section {
    padding-bottom: 3rem;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Desktop Grid: 70% Form, 30% Sidebar */
@media (min-width: 992px) {
    .booking-grid {
        grid-template-columns: 2.5fr 1fr;
        align-items: start;
    }
    .sidebar-wrapper {
        position: sticky;
        top: 90px;
        z-index: 10;
    }
}

/* --- 3. COMPACT FORM CARDS --- */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: var(--space-card-pad);
    margin-bottom: 1rem; /* Tighter spacing between cards */
    box-shadow: var(--shadow-card);
    position: relative; /* Context for Z-index */
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.card-header i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 0.75rem;
    background: #EFF6FF;
    padding: 6px;
    border-radius: 6px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* --- 4. RADIO TILES (Mobile Optimized) --- */
.journey-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on mobile */
    gap: 0.5rem; /* Tight gap */
    margin-bottom: 1.25rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.6rem 0.2rem; /* Compact padding */
    transition: all 0.2s var(--ease);
    height: 100%;
}

.card-content i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.card-content span {
    font-size: 0.75rem; /* Smaller text for mobile fit */
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    line-height: 1.1;
}

/* Selected State */
.radio-card input:checked + .card-content {
    background: #EFF6FF;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.radio-card input:checked + .card-content i { color: var(--accent); }

/* --- 5. INPUT FIELDS (Overlap Fixes) --- */
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-gap);
    margin-bottom: var(--space-gap);
}

@media (min-width: 600px) {
    .input-grid { grid-template-columns: 1fr 1fr; }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem; /* Closer label to input */
    position: relative; /* Critical for z-index stacking */
}

/* Force higher z-index for phone group to allow dropdown to float over next input */
.input-group:has(.custom-dropdown) {
    z-index: 20; 
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 0.9rem;
    color: #94A3B8;
    font-size: 1rem;
    pointer-events: none; /* Prevent icon blocking click */
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: var(--input-height);
    padding: 0 0.75rem 0 2.5rem; /* Compact padding */
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
    font-family: 'Poppins', sans-serif;
    transition: border 0.2s;
    /* Fix for iOS shadow */
    -webkit-appearance: none; 
    appearance: none;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
    padding-right: 2rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- 6. PHONE INPUT (Dropdown Z-Index Fix) --- */
.phone-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    height: var(--input-height);
    background: #fff;
    position: relative; /* Anchor for absolute dropdown */
}

.custom-dropdown {
    position: relative;
    height: 100%;
    border-right: 1px solid var(--border-light);
    min-width: 90px;
}

.selected-option {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: #F8FAFC;
    border-radius: 8px 0 0 8px;
}

/* THE DROPDOWN FIX */
.dropdown-menu {
    position: absolute;
    top: 105%;
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-float);
    z-index: 100; /* Super high so it floats over everything */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-search {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    font-size: 0.9rem;
}

.dropdown-list li {
    padding: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f8f9fa;
}

/* --- 7. CORPORATE & SUBMIT --- */
.corporate-section {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #F8FAFC;
    border-radius: 8px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
}

.toggle-slider { width: 36px; height: 20px; margin-right: 10px; }
.toggle-slider:before { width: 14px; height: 14px; left: 3px; bottom: 3px; }
input:checked + .toggle-slider:before { transform: translateX(16px); }
.toggle-text { font-size: 0.85rem; font-weight: 500; }

.premium-submit-btn {
    width: 100%;
    height: 54px; /* Big touch target */
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    margin-top: 1rem;
}

/* --- 8. FLOATING CTA FIX (Overlap Issue) --- */
.floating-cta {
    bottom: 80px !important; /* Move UP so it doesn't block the submit button/footer */
    width: 50px !important;  /* Smaller on mobile */
    height: 50px !important;
    font-size: 24px !important;
    right: 15px !important;
}

/* Text label next to FAB (if exists) */
.floating-cta::after {
    display: none; /* Hide text label on mobile to prevent overlap */
}

@media (min-width: 768px) {
    .floating-cta {
        bottom: 30px !important;
        width: 60px !important;
        height: 60px !important;
    }
}

/* --- 9. TRUST SIDEBAR (Compact) --- */
.trust-card {
    padding: var(--space-card-pad);
    background: #F0FDF4; /* Light Green Tint */
    border: 1px solid #BBF7D0;
}

.trust-header h4 { font-size: 1rem; margin-bottom: 0.75rem; }

.benefit-list li {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.icon-box {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}