/* Font Imports */
@font-face {
    font-family: 'Inter';
    font-weight: 400;
    src: url('assets/application-onboarding/inter-latin-400-normal.eca1e21531598d5db58f.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 500;
    src: url('assets/application-onboarding/inter-latin-500-normal.b7c27c60f848f2083f45.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 600;
    src: url('assets/application-onboarding/inter-latin-600-normal.69a8d1d484967aba2389.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 700;
    src: url('assets/application-onboarding/inter-latin-700-normal.084676038be5b1c38324.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Epilogue';
    font-weight: 600;
    src: url('assets/application-onboarding/epilogue-latin-600-normal.718a2245a43014a350b4.woff2') format('woff2');
    font-display: swap;
}

/* Global Styles & Resets */
:root {
    --primary-color: rgb(28, 67, 79); /* Dark teal from header */
    --secondary-color: rgb(49, 164, 164); /* Teal accent */
    --background-color: rgb(245, 247, 246); /* Light gray background */
    --card-background: #ffffff;
    --text-color: rgb(0, 0, 0);
    --gray-text: rgb(107, 114, 128); /* For info boxes, approximated */
    --border-color: rgb(209, 213, 219); /* Light gray border, approximated */
    --focus-border-color: rgb(99, 102, 241); /* Example blue for focus */
    --light-blue-info: rgb(224, 242, 242); /* Background for info boxes, approximated */
    --green-check: rgb(52, 211, 153); /* Green for checkmark, approximated */
    --progress-active: rgb(28, 67, 79); /* Dark teal for active progress step */
    --progress-inactive: rgb(209, 213, 219); /* Light gray for inactive progress step */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Times New Roman", Inter, sans-serif; /* Per metadata, Inter for general content */
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px; /* Adjusted visually */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px; /* Matches viewport width */
    padding: 0.5rem 0;
}

.logo img {
    height: 32px; /* Adjust logo size visually */
}

.logo.logo-typographic {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: Inter, sans-serif;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a,
.main-nav button {
    font-family: Inter, sans-serif; /* As seen in screenshots */
    font-size: 0.95rem;
    text-decoration: none;
    color: rgb(255, 255, 255);
    white-space: nowrap;
    border: none; /* Reset button styles */
    background: transparent; /* Reset button styles */
    cursor: pointer;
}

.main-nav a:hover, .main-nav button:hover {
    opacity: 0.9;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-link .phone-icon {
    width: 18px;
    height: 18px;
    color: rgb(255, 255, 255);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: rgb(255, 255, 255);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.form-card {
    background-color: var(--card-background);
    border-radius: 0.75rem; /* Rounded corners */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    max-width: 650px; /* Based on screenshot visual */
    width: 100%;
    margin-bottom: 1.5rem;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.progress-step {
    width: 3rem; /* Length of the dash */
    height: 0.25rem; /* Thickness of the dash */
    background-color: var(--progress-inactive);
    border-radius: 9999px;
}

.progress-step.active {
    background-color: var(--progress-active);
}

.form-title {
    font-family: Epilogue, sans-serif; /* Epilogue for main titles */
    font-weight: 600;
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.form-title .highlight {
    font-weight: 700; /* Bolder for 'Enter your zip code' */
    font-family: Inter, sans-serif; /* Inter for highlighted text, as seen */
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
.form-step.fade-out {
    animation: fadeOut 0.5s ease forwards;
}
#thankYouMessage.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label, .field-label {
    display: block;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.input-with-icon,
.select-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input,
.select-with-icon select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none; /* Remove default styling for select */
    -moz-appearance: none;
    appearance: none;
}

.input-with-icon input::placeholder,
.select-with-icon select option[value=""][disabled] {
    color: var(--gray-text);
}

.input-with-icon input:focus,
.select-with-icon select:focus {
    border-color: var(--focus-border-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); /* Soft focus ring */
}

/* Specific styling for zip code input with checkmark (simulated) */
/* Apply this class dynamically via JS for actual validation */
.input-with-icon input.validated {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2334d399" width="20px" height="20px"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px 20px;
    padding-right: 2.5rem; /* Make space for the icon */
    border-color: var(--green-check);
}

.zip-code-info {
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-top: 0.5rem;
    padding-left: 0.5rem; /* Align with input */
}
.zip-code-info.hidden {
    display: none; /* Initially hidden, show after validation (JS) */
}


/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--light-blue-info);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-family: Inter, sans-serif;
}

.info-box img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.info-box p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Continue Button */
.continue-button {
    width: 100%;
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.continue-button:hover {
    background-color: rgb(26, 58, 68); /* Slightly darker */
}

/* Medicare Disclaimers Link */
/* Site footer */
.site-footer {
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
}
.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    font-family: Inter, sans-serif;
}

/* Step 2 Specifics */
.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-with-icon .calendar-icon {
    position: absolute;
    right: 1rem;
    width: 20px;
    height: 20px;
    color: var(--gray-text);
    pointer-events: none; /* Ensures input is clickable */
}

.select-with-icon select {
    padding-right: 2.5rem; /* Space for the arrow */
}

.select-with-icon .select-arrow {
    position: absolute;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--gray-text); /* Down arrow */
    pointer-events: none;
}

.radio-buttons-group {
    display: flex;
    gap: 1rem;
}

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

.radio-label {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: var(--focus-border-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hidden-radio:checked + .radio-label {
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    border-color: var(--primary-color);
    position: relative;
}

.hidden-radio:checked + .radio-label::after {
    /* Checkmark for selected radio button */
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}


/* Media Queries */
@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem 1rem; /* Adjust padding on mobile */
    }

    .main-nav {
        display: none; /* Hide desktop nav items on mobile */
    }

    .menu-toggle {
        display: flex; /* Show hamburger menu on mobile */
    }

    main {
        padding: 0; /* Remove side padding for full-width card */
    }

    .form-card {
        padding: 1.5rem;
        border-radius: 0; /* No rounded corners on mobile full width */
        box-shadow: none; /* No shadow on mobile full width */
        max-width: 100%;
        min-height: calc(100vh - 70px); /* Fill remaining viewport height */
        justify-content: space-between;
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .progress-bar {
        margin-bottom: 1.5rem;
    }

    .form-group-grid {
        grid-template-columns: 1fr; /* Stack DOB and Gender vertically */
        gap: 1rem;
    }

    .radio-buttons-group {
        flex-direction: column;
        gap: 0.75rem;
    }

}