
     
     /* ==========================================================================
           1. CORE COMPATIBILITY STYLES (From Your Index Page Theme)
           ========================================================================== */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: #f9fafb;
            color: #1f2937;
            line-height: 1.5;
        }
        .layout-container {
            display: flex;
            flex-direction: column; /* Mobile first vertical stacking */
            min-height: 100vh;
        }

        /* Sidebar Branding Layout Rules */
        .sidebar {
            background-color: #0A192F; /* Navy */
            color: #ffffff;
            padding: 24px;
            border-bottom: 4px solid #D4AF37; /* Metallic Gold */
        }
        .sidebar h2 {
            color: #D4AF37; /* Metallic Gold */
            font-size: 1.5rem;
            letter-spacing: 0.05em;
        }
        .sidebar-subtitle {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #9ca3af;
            margin-bottom: 32px;
        }
        .nav-title {
            font-size: 0.75rem;
            font-weight: 600;
            color: #9ca3af;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 8px;
        }
        .sidebar nav a {
            display: block;
            color: #ffffff;
            text-decoration: none;
            padding: 8px 12px;
            margin-bottom: 8px;
            border-radius: 4px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        .sidebar nav a:hover {
            background-color: #D4AF37; /* Metallic Gold */
            color: #0A192F; /* Navy */
        }

        /* Main Workspace Framing Containers */
        .main-content {
            flex: 1;
            padding: 24px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }
        .tours-heading {
            font-size: 1.875rem;
            color: #0A192F; /* Navy */
            margin-bottom: 8px;
        }
        .heading-divider {
            width: 80px;
            height: 4px;
            background-color: #D4AF37; /* Metallic Gold */
            border-radius: 2px;
            margin-bottom: 32px;
        }

        /* ==========================================================================
           2. PRODUCT CARDS & SELECTION STYLES
           ========================================================================== */
        /* Mapped directly to your original card classes */
        .tour-styles-grid {
            display: grid;
            grid-template-columns: 1fr; /* 1 column on small screens */
            gap: 24px;
            margin-bottom: 40px;
        }
        .product-card {
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e5e7eb;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
        }
        .image-placeholder {
            width: 100%;
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-weight: 700;
            font-size: 1rem;
            color: #ffffff;
            background-color: #0A192F; /* Matching Brand Navy */
            border-bottom: 4px solid #D4AF37; /* Gold Accent Lines */
            padding: 12px;
        }
        .card-content {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .card-content h3 {
            font-size: 1.15rem;
            color: #0A192F; /* Navy */
            margin-bottom: 6px;
        }
        .card-content .specs {
            color: #D4AF37; /* Metallic Gold highlight text */
            font-weight: 700;
            font-size: 0.875rem;
            margin-bottom: 12px;
        }
        .card-content .description {
            color: #4b5563;
            font-size: 0.85rem;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        /* Checkbox Layout Rows styling */
        .occupancy-preference-label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            font-size: 0.825rem;
            color: #4b5563;
            cursor: pointer;
            background-color: #f3f4f6;
            padding: 8px 10px;
            border-radius: 6px;
        }
        .tour-select-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px dashed #e5e7eb;
            font-size: 0.875rem;
            font-weight: 700;
            color: #0A192F;
            cursor: pointer;
        }
        .occupancy-preference-label input,
        .tour-select-checkbox input {
            width: 16px;
            height: 16px;
            accent-color: #0A192F; /* Navy inputs theme */
            cursor: pointer;
        }

        /* ==========================================================================
           3. FINANCIAL PANEL, FORM SYSTEM & GATEWAYS
           ========================================================================== */
        .invoice-summary-box {
            background-color: #ffffff;
            border: 2px solid #0A192F; /* Navy Border border framework */
            border-radius: 12px;
            padding: 24px;
            margin: 32px 0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }
        .invoice-summary-box h3 {
            color: #0A192F;
            margin-bottom: 16px;
            font-size: 1.25rem;
            border-bottom: 2px solid #D4AF37;
            padding-bottom: 8px;
        }
        .summary-line {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #e5e7eb;
            font-size: 0.95rem;
        }
        .summary-line.highlighted-total {
            color: #0A192F;
            font-weight: 700;
        }
        .summary-line.highlighted-total strong {
            font-size: 1.35rem;
            color: #D4AF37; /* Gold focus numbers */
        }
        .installment-notice-text {
            margin-top: 12px;
            font-size: 0.8rem;
            color: #6b7280;
        }

        /* Fieldset System Frameworks styling */
        .form-fieldset {
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 24px;
            background-color: #ffffff;
        }
        .form-fieldset legend {
            font-weight: 700;
            color: #0A192F;
            padding: 0 8px;
            font-size: 0.95rem;
        }
        .payment-radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 8px;
        }
        .radio-option {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.95rem;
        }
        .radio-option input {
            accent-color: #D4AF37;
            width: 18px;
            height: 18px;
        }

        /* Dynamic Alert info boxes definitions */
        .instruction-box {
            background-color: #f9fafb;
            border-left: 4px solid #D4AF37; /* Metallic Gold Alert Border line */
            padding: 16px;
            border-radius: 0 8px 8px 0;
            margin: 20px 0;
            border-top: 1px solid #e5e7eb;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
        }
        .instruction-box h4 {
            color: #0A192F;
            margin-bottom: 6px;
        }
        .instruction-box p {
            font-size: 0.9rem;
            color: #4b5563;
            margin-bottom: 4px;
        }
        .instruction-box address {
            font-style: normal;
            font-weight: 700;
            color: #1f2937;
            margin-top: 6px;
            line-height: 1.4;
        }

        /* Critical Framework Visibility Rule */
        .hidden {
            display: none !important;
        }

        /* Registry Main Submit Call to Action Button styling */
        .submit-form-btn {
            display: block;
            width: 100%;
            background-color: #D4AF37; /* Metallic Gold */
            color: #0A192F; /* Navy */
            font-weight: 700;
            font-size: 1.1rem;
            padding: 16px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
        }
        .submit-form-btn:hover {
            background-color: #0A192F;
            color: #ffffff;
            border: 1px solid #D4AF37;
        }

        /* ==========================================================================
   4. DESKTOP RESPONSIVE CONFIGURATIONS (Prevents text cut off)
   ========================================================================== */
@media (min-width: 768px) {
    .layout-container {
        flex-direction: row;
    }
    .sidebar {
        width: 256px;
        border-bottom: none;
        border-right: 4px solid #D4AF37;
        position: fixed;
        height: 100vh;
    }
    .main-content {
        margin-left: 256px;
        padding: 48px;
    }
    .tour-styles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .layout-container {
        flex-direction: row;
    }
    .sidebar {
        width: 256px;
        border-bottom: none;
        border-right: 4px solid #D4AF37;
        position: fixed;
        height: 100vh;
    }
    .main-content {
        /* Changed from 256px to 300px to add spacing between sidebar and 1st card */
        margin-left: 300px; 
        padding: 48px;
    }
    .tour-styles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   5. MOBILE RESPONSIVE VIEW SCALING & LAYOUT BREAKPOINTS
   ========================================================================== */

/* Mobile & Tablet Settings (Small Screens under 768px wide) */
@media (max-width: 767px) {
    .layout-container {
        flex-direction: column; /* Stacks the sidebar cleanly over your form cards */
    }
    .sidebar {
        width: 100%;
        position: relative; /* Removes the fixed position so you can scroll down normally */
        height: auto;
        padding: 20px;
        text-align: center;
    }
    .sidebar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px; /* Lined up neatly as buttons instead of a long vertical block */
        margin-top: 12px;
    }
    .sidebar nav a {
        margin-bottom: 0;
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .main-content {
        margin-left: 0 !important; /* Clears desktop margins so text fits phone screens */
        padding: 16px;
    }
    .tour-styles-grid {
        grid-template-columns: 1fr; /* Forces exactly 1 card per row on mobile views */
        gap: 16px;
    }
    .input-grid {
        grid-template-columns: 1fr; /* Stacks personal info text fields vertically */
    }
    .manifest-table th, 
    .manifest-table td {
        padding: 8px 6px;
        font-size: 0.8rem; /* Shrinks table text slightly so it doesn't clip on small screens */
    }
}

/* Desktop Settings (Screens 768px wide and larger) */
@media (min-width: 768px) {
    .layout-container {
        flex-direction: row; /* Sidebar stays locked left, content goes on the right */
    }
    .sidebar {
        width: 256px;
        border-bottom: none;
        border-right: 4px solid #D4AF37; /* Clean brand gold line divider */
        position: fixed;
        height: 100vh;
        overflow-y: auto; /* Ensures sidebar scrolls independently if navigation links grow */
    }
    .main-content {
        margin-left: 300px; /* Provides that perfect breathing room you requested earlier */
        padding: 48px;
    }
    .tour-styles-grid {
        grid-template-columns: repeat(4, 1fr); /* Snaps cards to 4 clean vertical columns */
    }
}

/* ==========================================================================
   6. REGISTRATION PASSENGER PROFILE FORM BLOCKS
   ========================================================================== */
.registration-form-panel {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.registration-form-panel h3 {
    color: #0A192F;
    font-size: 1.15rem;
    margin-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

.section-subheading-break {
    color: #0A192F;
    font-size: 1.35rem;
    margin: 40px 0 16px 0;
    font-weight: 700;
}

/* Input Fields Responsive Structure Matrix */
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .input-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .full-width-field {
        grid-column: span 3;
    }
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
}

.form-field-group input[type="text"],
.form-field-group input[type="tel"],
.form-field-group input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-field-group input:focus {
    border-color: #D4AF37; /* Changes to Gold highlight on click input */
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.required-star {
    color: #ef4444;
    font-weight: bold;
}

/* Travel Protection & Waiver Spacing styling */
.insurance-notice-memo {
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 12px;
}

.insurance-links-list {
    margin-left: 20px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #4b5563;
}

.insurance-links-list li {
    margin-bottom: 6px;
}

.insurance-links-list a {
    color: #0A192F;
    font-weight: bold;
    text-decoration: underline;
}

.insurance-links-list a:hover {
    color: #D4AF37;
}

.insurance-terms-notice {
    background-color: #fffbeb;
    border-left: 4px solid #D4AF37;
    padding: 12px;
    font-size: 0.85rem;
    color: #92400e;
    border-radius: 0 6px 6px 0;
    margin-bottom: 16px;
    line-height: 1.5;
}

.insurance-radio-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

/* Legal text scroller design overlay rules */
.waiver-scroll-box {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
    height: 110px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.signature-input-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.checkbox-confirm-row {
    margin-top: 4px;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

html {
    scroll-behavior: smooth;
}
