/* --- Google Font Import --- */
/* This rule should be at the very top of your CSS file. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

/* --- Color & Font Variables --- */
:root {
    /* Primary Accent: Blue Tones */
    --primary-blue: #163b8a;
    --primary-blue-hover: #1D4ED8;
    --primary-blue-light: #DBEAFE;

    --primary-blue-subtle: rgba(29, 78, 216, 0.1);
    --warning-yellow-bg: #fefce8;
    --warning-yellow-icon: #f59e0b;
    /* Adjusted from user's rgba for better visibility */

    /* Neutrals - Soft & Modern */
    --neutral-dark: #111827;
    --neutral-medium-dark: #374151;
    --neutral-medium: #6B7280;
    --neutral-light: #F3F4F6;
    --neutral-border: #E5E7EB;
    --neutral-white: #FFFFFF;

    /* Utility Colors */
    --red: #EF4444;
    --soft-gold: rgb(255, 237, 134);

    /* Font */
    --font-primary: 'Poppins', sans-serif;
}


/* --- General Body & Typography --- */
body {
    font-family: var(--font-primary);
    background-color: var(--neutral-light);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E5E7EB' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--neutral-medium-dark);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-weight: 800;
    /* set up your gradient */
    background: linear-gradient(to right,
            var(--neutral-dark),
            var(--primary-blue));
    /* clip it to the text */
    -webkit-background-clip: text;
    background-clip: text;
    /* for non‐WebKit browsers */
    /* make the fill transparent so you see the gradient */
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* fallback for Firefox */
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.25em;
    margin-top: 0;
}

h3 {
    font-size: 1em;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-blue-hover);
    text-decoration: none;
}

strong {
    font-weight: 700;
    color: var(--neutral-dark);
}

/* --- Header Styling (Original & New) --- */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 1rem;
    border-bottom: 1px solid var(--neutral-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

header>div {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
}

header h1::before {
    content: '✓';
    font-size: 1.2rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--primary-blue);
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

header h1:hover::before {
    transform: rotate(360deg);
}

header nav a {
    margin-left: 1.5rem;
    color: var(--neutral-medium);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

header nav a:hover {
    color: var(--neutral-dark);
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

header nav a:hover::after {
    width: 100%;
}

/* ==========================================================================
   UPDATED: Hero Section (Professional Style)
   ========================================================================== */

.hero-section {
    /* Use min-height for flexibility, not fixed height */
    height: 85vh;
    background-image: linear-gradient(rgba(10, 10, 20, 0.8), rgba(10, 10, 20, 0.8)), url("meeting.jpg");
    background-size: cover;
    background-position: center;
    /* Reduced padding to work better with min-height */
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    max-width: 1280px;
    width: 100%;
    /* Let padding create the height, not a fixed 100% */
    display: flex;
    /* This is the key: pushes text left and actions right */
    justify-content: space-between;
    /* This aligns both columns to the bottom */
    align-items: flex-end;
    gap: 3rem;
}

/* Simplified .hero-text. No flex properties needed. */
.hero-text {
    flex: 1; /* Allows it to take up available space */
    max-width: 60%; /* Prevents it from getting too wide */
    /* Text is aligned left by default */
}

.hero-section h2 {
    font-size: 3.30rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--neutral-white);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 2rem;
    color: var(--neutral-light);
    font-weight: 400;
    max-width: 650px;
    line-height: 1.7;
}

/* Container for button and terms link */
.hero-action {
    display: flex;
    flex-direction: column;
    /* Aligns button/link to the RIGHT */
    align-items: flex-end;
    flex-shrink: 0;
}

/* UPDATED: "Apple-style" pill button */
.hero-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    background-image: none;
    background-color: var(--neutral-white);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.hero-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--soft-gold);
    color: var(--neutral-dark);
}

/* Style for the terms & conditions link */
.hero-terms-link {
    margin: 0;
    padding: 0;
    color: var(--neutral-medium);
}

.hero-terms-link a {
    /* Removed font-size: 1rem; to inherit from parent */
    color: var(--neutral-medium);
    font-size: 0.875rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.hero-terms-link a:hover {
    color: var(--neutral-white);
}


/* --- Responsive adjustments for Hero Section --- */
@media (max-width: 900px) {
    .hero-section {
        padding: 3rem 1.5rem;
        /* Let content define height on mobile */
        min-height: auto;
    }

    .hero-content {
        /* Stacks the columns */
        flex-direction: column;
        /* Centers the columns */
        align-items: center;
        /* Centers the text inside the columns */
        text-align: center;
        /* Resets alignment for stacking */
        align-items: center;
        gap: 2.5rem;
    }

    .hero-text {
        max-width: 100%;
    }
    
    .hero-action {
        /* Centers the button/link inside its column */
        align-items: center;
    }

    .hero-section h2 {
        font-size: 2.75rem;
    }

    .hero-section p {
        max-width: 100%;
        margin-bottom: 0;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   NEW: Mobile Navigation & Hamburger Menu
   ========================================================================== */

/* --- Hamburger Menu Button --- */
.mobile-nav-toggle {
    display: none;
    /* Hidden by default on desktop */
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 100;
    /* Ensure it's on top of other header content */
}

/* Visually-hidden text for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* The lines of the hamburger icon */
.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
    content: '';
    position: absolute;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--neutral-dark);
    border-radius: 2px;
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-toggle::before {
    /* Top line */
    top: 25%;
}

.mobile-nav-toggle::after {
    /* Bottom line */
    bottom: 25%;
}

/* Animate hamburger to an 'X' when active */
header[data-nav-open="true"] .mobile-nav-toggle::before {
    transform: translateY(6px) rotate(45deg);
}

header[data-nav-open="true"] .mobile-nav-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
}


/* --- Main Content Layout --- */
main {
    padding: 2rem 2rem;
}

main>div {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* --- Informational Column (Left) --- */
main>div>div:first-child>div {
    margin-bottom: 2.5rem;
}

/* Redesigned Hero/Headline Section */
main>div>div:first-child {
    background-image: linear-gradient(to bottom right, var(--neutral-white), #f7faff);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--neutral-border);
    position: relative;
    overflow: hidden;
    /* Ensures pseudo-elements don't bleed out */
}

/* Decorative background flare for the main container */
main>div>div:first-child::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, var(--primary-blue-subtle), transparent 70%);
    z-index: 1;
}


/* --- 2. Content Sections & Separators --- */
/* Reset styles on the inner divs since they are no longer individual cards */
main>div>div:first-child>div {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
    z-index: 2;
    /* Ensures content appears above the decorative flare */
}

/* Add spacing and a bottom border to separate the content sections */
main>div>div:first-child>div:not(:last-child) {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-border);
}


/* --- 3. Typography and List Styling --- */
/* Adjusting heading and paragraph styles for the new layout */
main>div>div:first-child h2 {
    font-size: 2.75rem;
    line-height: 1.25;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

main>div>div:first-child p {
    font-size: 1.1rem;
    color: var(--neutral-medium-dark);
    margin-top: 1.5rem;
    line-height: 1.7;
}

/* Retaining your list styles from the previous request */
main>div>div ol,
main>div>div ul {
    padding-left: 0;
    list-style-type: none;
    margin-top: 1.5rem;
}

main>div>div li {
    margin-bottom: 1rem;
    color: var(--neutral-medium-dark);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

main>div>div li::before {
    flex-shrink: 0;
    margin-top: 5px;
    content: '✓';
    background-color: var(--primary-blue-light);
    color: var(--primary-blue-hover);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


/* --- Form Column (Right) --- */
main>div>div:last-child {
    background-color: var(--neutral-white);
    padding: 2.5rem;
    border-radius: 1rem;
    /* Slightly larger radius for a softer look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    /* Softer shadow */
    border: 1px solid var(--neutral-border);
}

#contract-form>div {
    margin-bottom: 1.75rem;
    /* Increased spacing */
    position: relative;
    /* Needed for floating labels/icons if added later */
}

#contract-form label {
    display: block;
    margin-bottom: 0.65rem;
    /* Increased spacing */
    font-weight: 600;
    font-size: 1.25rem;
    /* Slightly smaller label */
    color: var(--neutral-medium-dark);
}

/* --- General Input, Select, and Textarea Styling --- */
#contract-form input[type="text"],
#contract-form input[type="email"],
/* Changed from 'url' to 'email' to match your HTML */
#contract-form textarea,
#contract-form select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--neutral-border);
    border-radius: 0.5rem;
    /* Softer radius */
    box-sizing: border-box;
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: #F9FAFB;
    /* Very light background for depth */
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/* --- Focus State --- */
#contract-form input:focus,
#contract-form textarea:focus,
#contract-form select:focus {
    outline: none;
    background-color: var(--neutral-white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-subtle);
    /* Subtle blue glow */
}

/* --- Placeholder Styling --- */
#contract-form ::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

/* --- Custom Styling for Select (Dropdown) --- */
#contract-form select {
    appearance: none;
    /* Remove default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    /* Make space for custom arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
}

/* --- Custom Checkbox Styling --- */
/* The container for the checkbox and its label */
#contract-form div:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Space between checkbox and label */
    margin-top: 1rem;
}

/* Hide the default checkbox */
#contract-form input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Style the label to act as the checkbox container */
#contract-form input[type="checkbox"]+label {
    position: relative;
    padding-left: 2rem;
    /* Space for the custom checkbox */
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    color: var(--neutral-medium-dark);
    margin-bottom: 0;
    /* Override default label margin */
    line-height: 1.5;
    /* Center text with the box */
}

/* Create the custom checkbox box */
#contract-form input[type="checkbox"]+label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #F9FAFB;
    border: 1px solid var(--neutral-border);
    border-radius: 0.25rem;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Style the checkmark (hidden by default) */
#contract-form input[type="checkbox"]+label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    /* Hide and scale down */
    font-size: 1.2rem;
    color: var(--neutral-white);
    font-weight: 700;
    transition: transform 0.2s ease-in-out;
}

/* Show the checkmark when the checkbox is checked */
#contract-form input[type="checkbox"]:checked+label::after {
    transform: translateY(-50%) scale(1);
    /* Scale up to be visible */
}

/* Change the box background when checked */
#contract-form input[type="checkbox"]:checked+label::before {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Focus style for accessibility */
#contract-form input[type="checkbox"]:focus+label::before {
    box-shadow: 0 0 0 3px var(--primary-blue-subtle);
}

/* --- Submit Button Styling (Retained your excellent button style) --- */
#contract-form button[type="submit"] {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-white);
    background-image: linear-gradient(to right, var(--primary-blue), var(--primary-blue-hover));
    border: none;
    border-radius: 0.5rem;
    /* Matched to new input radius */
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

#contract-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(29, 78, 216, 0.35);
}

/* --- File Drop Zone Styling --- */

/* The main container for the drop zone */
#file-drop-zone {
    border: 3px dashed var(--neutral-border);
    /* Dashed border indicates a drop target */
    border-radius: 0.75rem;
    /* Consistent with other form elements */
    padding: 2rem;
    text-align: center;
    background-color: #F9FAFB;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    /* Indicates the entire area is clickable */
}

/* Hover state for the drop zone */
#file-drop-zone:hover {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

/* Visual feedback for when a file is being dragged over the zone */
#file-drop-zone.drag-over {
    border-style: solid;
    border-color: var(--primary-blue-hover);
    background-color: var(--primary-blue-subtle);
    box-shadow: inset 0 0 15px rgba(29, 78, 216, 0.2);
}

/* The message content inside the drop zone */
#file-drop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--neutral-medium);
    pointer-events: none;
    /* Allows clicks to pass through to the parent drop-zone */
}

#file-drop-message svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

#file-drop-zone:hover svg {
    transform: scale(1.1);
    /* Slightly enlarge the icon on hover */
}

#file-drop-message p {
    margin: 0;
}

#file-drop-message .small-text {
    font-size: 0.875rem;
}

#file-drop-message strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* Custom "Select File" button styling */
#select-file-button {
    pointer-events: auto;
    /* Re-enable pointer events for the button */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-blue-hover);
    background-color: var(--neutral-white);
    border: 1px solid var(--neutral-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

#select-file-button:hover {
    background-color: var(--primary-blue-hover);
    color: var(--neutral-white);
    border-color: var(--primary-blue-hover);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
    transform: translateY(-2px);
}

/* Display for the selected file's name */
#file-name-display {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    font-size: 0.9rem;
    /* Keeps the element in the layout without taking up space */
    min-height: 1.2rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: var(--neutral-medium);
    font-size: 0.875rem;
    border-top: 1px solid var(--neutral-border);
    background-color: var(--neutral-white);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {

    /* This rule is great as-is, it correctly stacks the columns. */
    main>div {
        grid-template-columns: 1fr;
    }
}

/* Updated block for small screens (phones).
  Copy and paste this entire block to replace your existing 
*/
@media (max-width: 640px) {
    html {
        overflow-x: hidden;
    }

    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    header {
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 1rem 1rem;
        border-bottom: 1px solid var(--neutral-border);
        position: sticky;
        top: 0;
        z-index: 50;
        transition: transform 0.3s ease-in-out;
        /* ADD THIS LINE */
    }

    header>div {
        flex-direction: column;
        /* Add this to ensure the title and nav are centered when stacked */
        align-items: center;
        gap: 1rem;
    }

    .left-column{
        display: none;
    }

    .support-section {
        /* Center the support section content */
        display: none;
    }

    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    header nav a {
        margin-left: 0;
    }

    /* This class will be added by JavaScript to hide the header */
    header.header--hidden {
        transform: translateY(-100%);
    }

    main {
        /* Reduce horizontal padding for more content space */
        padding: 2rem 1.5rem;
    }

    main>div {
        gap: 2rem;
    }

    /* --- MOBILE: Adjust Left Column Content --- */
    main>div>div:first-child {
        /* Reduce padding on the main info card */
        padding: 1.5rem;
    }

    /* Reduce the size of the main headline significantly for mobile */
    main>div>div:first-child h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* Slightly reduce the paragraph font size */
    main>div>div:first-child p {
        font-size: 1rem;
        margin-top: 1rem;
    }

    /* --- MOBILE: Adjust Right Column Form --- */
    main>div>div:last-child {
        /* Reduce padding on the form card */
        padding: 1.5rem;
    }

    /* Reduce form label font size for a cleaner look */
    #contract-form label {
        font-size: 1rem;
    }

    /* Reduce padding on the file drop zone */
    #file-drop-zone {
        padding: 1.5rem;
    }

    /* --- START: NEW Mobile Styles for Status Message Bar --- */
    #status-message-container {
        /* Reduce padding for smaller screens */
        padding: 0.75rem 1rem;
        flex-direction: row;
        /* Ensure it stays as a row */
        gap: 1rem;
        /* Slightly reduce the gap */
    }

    #status-message-text {
        /* Slightly smaller font on mobile for better fit */
        font-size: 0.9rem;
    }

    /* --- END: NEW Mobile Styles for Status Message Bar --- */

}


/* ==============================================
    MOBILE STYLES FOR TABLETS AND PHONES
   ==============================================
*/
@media (max-width: 768px) {
    /* Using 768px is better for targeting tablets and phones */

    /* --- General Mobile Layout --- */
    main {
        padding: 2rem 1.5rem;
    }

    main>div {
        gap: 2rem;
    }

    /* --- Mobile Header & Navigation (THE FIX) --- */
    header {
        position: sticky;
        /* This ensures the header sticks */
        top: 0;
        z-index: 50;
    }

    .mobile-nav-toggle {
        display: block;
        /* Shows the hamburger menu button */
    }

    header nav {
        /* These styles create the dropdown menu effect */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--neutral-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
    }

    header[data-nav-open="true"] nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    }

    header nav a {
        margin: 0;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
    }

    header nav a::after {
        display: none;
        /* Hides the desktop underline animation */
    }

    header nav a:hover {
        background-color: var(--primary-blue-subtle);
        color: var(--primary-blue);
    }

    .support-section {
        display: none;
    }


    /* --- MOBILE: Adjust Content & Form --- */
    main>div>div:first-child {
        padding: 1.5rem;
    }

    main>div>div:first-child h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    main>div>div:first-child p {
        font-size: 1rem;
        margin-top: 1rem;
    }

    main>div>div:last-child {
        padding: 1.5rem;
    }

    #contract-form label {
        font-size: 1rem;
    }

    #file-drop-zone {
        padding: 1.5rem;
    }
}


/* --- START: NEW Apple-Inspired Status Message Bar --- */
#status-message-container {
    /* Positioning & Layout */
    position: fixed;
    /* Floats on top of the content */
    top: 20px;
    /* Distance from the top */
    left: 50%;
    transform: translateX(-50%);
    /* Horizontally centers the element */
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;

    /* Appearance (The "Glassmorphism" effect) */
    background-color: rgba(30, 30, 30, 0.75);
    /* Dark, semi-transparent background */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    /* For Safari */
    color: #FFFFFF;
    border-radius: 999px;
    /* Pill shape */
    padding: 10px 12px 10px 18px;
    /* Top/Bottom, Right, Left */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Animation & Initial State (Hidden by default) */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -100px);
    /* Start above the screen */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, visibility 0.5s;
}

/* This class will be added by JS to show the bar */
#status-message-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    /* Move to its final position */
}

#status-message-text {
    margin: 0;
    font-weight: 600;
    /* Bolder text for readability */
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Redesigned Close Button */
#close-status-message {
    /* Reset and Shape */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

#close-status-message:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Creating the 'X' with pseudo-elements */
#close-status-message::before,
#close-status-message::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 1.5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

#close-status-message::before {
    transform: rotate(45deg);
}

#close-status-message::after {
    transform: rotate(-45deg);
}

/* --- Mobile Adjustments --- */
@media (max-width: 600px) {
    #status-message-container {
        width: 90vw;
        /* Use most of the screen width */
        padding: 8px 10px 8px 16px;
        gap: 8px;
    }

    #status-message-text {
        font-size: 0.85rem;
    }
}