/* GLOBAL RESET & VARIABLES */
:root {
    /* FONTS */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-display: 'Inter', sans-serif;
    /* Fallback for Belkin */

    /* COLORS - EXTRACTED FROM TAILWIND SNIPPET */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --cyan-600: #0891b2;
    --light-blue-bg: rgb(224 242 254);

    /* THEME MAPPING */
    --background: #ffffff;
    --background-alt: var(--light-blue-bg);
    --foreground: var(--slate-900);
    --text-muted: var(--slate-600);

    --primary-gradient: linear-gradient(to right, var(--blue-600), var(--cyan-600));
    --primary-solid: var(--blue-600);

    --border-color: var(--slate-200);

    /* SPACING & RADIUS */
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    /* rounded-3xl approx */
    --radius-full: 9999px;

    /* SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* STATUS COLORS */
    --accent-success: #16a34a;
    /* Green 600 */
    --accent-alert: #dc2626;
    /* Red 600 */
}

/* ... existing styles ... */

/* DIAGNOSTIC COMPONENT STYLES (MATCHING SCRIPT.JS) */
.diagnostic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: background 0.2s;
}

.diagnostic-item:hover {
    background: var(--slate-50);
}

.diagnostic-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--slate-200);
    border-radius: 6px;
    /* Rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagnostic-item.active .diagnostic-checkbox {
    border-color: var(--blue-600);
    background: var(--blue-50);
}

.diagnostic-check {
    width: 12px;
    height: 12px;
    background: var(--blue-600);
    border-radius: 2px;
}

.diagnostic-text {
    font-size: 1.1rem;
    color: var(--slate-700);
}

.diagnostic-btn,
.submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    /* Pill shape */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s;
}

.diagnostic-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.diagnostic-result {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.diagnostic-score-value {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-display);
    line-height: 1;
    margin: 1rem 0;
}

.cta-box {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px var(--blue-100);
}

.diagnostic-disclaimer {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* UTILITIES */
.page {
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
}

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
}

/* SECTIONS */
section {
    padding: 8rem 4vw;
    position: relative;
    width: 100%;
    margin: 0;
}

/* THEME ALTERNATING LOGIC */
/* ODD Sections: Light Blue Background, Dark Text */
section:nth-child(odd) {
    background-color: var(--light-blue-bg);
    /* rgb(224 242 254) */
    color: var(--slate-900);
}

section:nth-child(odd) .section-title-label {
    color: var(--blue-700);
}

section:nth-child(odd) h2,
section:nth-child(odd) h3,
section:nth-child(odd) h4 {
    color: var(--slate-900);
}

/* EVEN Sections: Black Background, Light Text */
section:nth-child(even) {
    background-color: #000000;
    /* Pure Black as requested */
    color: var(--slate-100);
}

section:nth-child(even) .section-title-label {
    color: var(--cyan-400);
    /* Brighter for dark bg */
}

/* Fix Headlines on Dark Background */
section:nth-child(even) h2,
section:nth-child(even) h3,
section:nth-child(even) h4 {
    color: white;
}

/* Adjust gradients to pop on black */
section:nth-child(even) .section-headline,
section:nth-child(even) .hero-title {
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    /* Lighter Blue/Cyan */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-standard {
    max-width: none;
    /* Full Width */
    margin: 0;
    width: 100%;
}

.section-standard>*,
.section-header {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO SECTION */
/* HERO SECTION */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    background-color: var(--background-alt);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    max-width: none;
    /* Full Width */
    width: 100%;
    margin: 0;
}

.hero>* {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (max-width: 768px) {
    .hero {
        align-items: center;
        text-align: center;
    }
}

/* Decorative blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.1);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    max-width: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(8, 145, 178, 0.1);
    filter: blur(100px);
    border-radius: 50%;
    pointer-events: none;
    max-width: none;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--blue-100);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    color: var(--blue-600);
    /* Color 1: Blue */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-family: var(--font-main);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--slate-900);
    /* Color 2: Black */
    max-width: 800px;
    background: none;
    /* No Gradient */
    -webkit-text-fill-color: initial;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title br {
    display: block;
}

/* HEADINGS: 2-Color System (No Gradients) */
.section-headline {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--slate-900);
    /* Main Headline: Black */
    display: block;
}

/* Theme Adaptation for Headings */
section:nth-child(even) .section-headline,
section:nth-child(even) .hero-title {
    color: white;
    /* White on Dark */
    background: none;
    -webkit-text-fill-color: initial;
}

section:nth-child(even) .hero-subtitle,
section:nth-child(even) .section-title-label {
    color: var(--cyan-400);
    /* Cyan label on Dark */
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

/* Fallback/Overrides if needed */
.section-headline span {
    background: none;
    -webkit-text-fill-color: initial;
    color: inherit;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 0 2.5rem 0;
    /* Left aligned margin */
}

@media (max-width: 768px) {
    .hero-description {
        margin: 0 auto 2.5rem;
    }
}

/* BUTTONS */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title-label {
    color: var(--blue-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-headline {
    font-size: 2.5rem;
}

/* COMPONENTS: CARDS & BOXES */

/* Definition Box */
.definition-box {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 3rem;
    font-size: 1.5rem;
    text-align: center;
    color: var(--slate-700);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Qualification Grid */
.qual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* Qualification Column Base */
.qual-col {
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Cards on Light Sections (Odd) - Standard White Card */
section:nth-child(odd) .qual-col {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Cards on White Sections (Even) - Slight contrast or border */
section:nth-child(even) .qual-col {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

section:nth-child(even) .qual-col h3 {
    color: var(--slate-900);
    border-bottom-color: var(--light-blue-bg);
}

section:nth-child(even) .qual-list li {
    color: var(--slate-700);
}

.qual-col:hover,
section:nth-child(even) .qual-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background: white;
    border-color: var(--blue-200);
}

.qual-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background: white;
}

.qual-col h3 {
    color: var(--slate-900);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-blue-bg);
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.qual-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--slate-700);
    font-size: 1.1rem;
}

.qual-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.qual-list.for li::before {
    background-color: var(--accent-success);
}

.qual-list.not-for li::before {
    background-color: var(--accent-alert);
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--slate-50);
    position: absolute;
    top: -1rem;
    right: -1rem;
    line-height: 1;
    z-index: 0;
    opacity: 1;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--blue-700);
    font-weight: 700;
}

.step-content p {
    color: var(--slate-600);
    font-size: 1rem;
}

/* Outcome Grid */
.outcome-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .outcome-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .outcome-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.outcome-item {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

/* Light Mode (ODD) */
section:nth-child(odd) .outcome-item {
    background: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* White Mode (EVEN) */
section:nth-child(even) .outcome-item {
    background: white;
    border: 1px solid var(--slate-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

section:nth-child(even) .outcome-item h4 {
    color: var(--blue-600);
    /* Standard Blue */
}

section:nth-child(even) .outcome-item p {
    color: var(--slate-600);
    /* Standard Slate */
}

.outcome-item:hover {
    transform: translateY(-5px);
}

section:nth-child(odd) .outcome-item:hover,
section:nth-child(even) .outcome-item:hover {
    border-color: var(--blue-200);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background: white;
}

.outcome-item:hover {
    border-color: var(--blue-600);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.outcome-item h4 {
    color: var(--blue-600);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.outcome-item p {
    color: var(--slate-600);
    font-size: 1.1rem;
    line-height: 1.5;
}

a.outcome-item {
    cursor: pointer;
}

/* Boundaries */
.boundary-box {
    background: #fef2f2;
    /* Red-50 */
    border: 1px solid #fecaca;
    /* Red-200 */
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.boundary-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.boundary-list li {
    color: #991b1b;
    /* Red-800 */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.boundary-list li::before {
    content: '✕';
    color: #dc2626;
}

/* Diagnostic / Initiate */
.diagnostic-container {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    max-width: 800px;
    margin: 3rem auto 0;
}

.diagnostic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--slate-100);
}

.diagnostic-status {
    background: var(--blue-50);
    color: var(--blue-600);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--slate-900);
    color: var(--slate-100);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer .logo {
    font-family: var(--font-mono);
    color: white;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer .meta {
    font-size: 0.875rem;
    color: var(--slate-600);
}

/* NEW ASSESSMENT FORM STYLES */

.form-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-100);
}

.section-header-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-100);
    line-height: 1;
}

.section-header-small h3 {
    font-size: 1.5rem;
    color: var(--slate-800);
    margin: 0;
}

.question-group {
    margin-bottom: 2.5rem;
}

.question-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 1rem;
}

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

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

.radio-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--slate-100);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.radio-card:hover {
    border-color: var(--blue-200);
    background: var(--blue-50);
}

.radio-card input[type="radio"] {
    margin-top: 0.25rem;
    accent-color: var(--blue-600);
    transform: scale(1.2);
}

/* When checked (requires JS handling or :has support) */
.radio-card:has(input:checked) {
    border-color: var(--blue-600);
    background: var(--blue-50);
    box-shadow: var(--shadow-sm);
}

.radio-content {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.4;
}

.radio-card:has(input:checked) .radio-content {
    color: var(--slate-900);
    font-weight: 500;
}

/* RESULTS CONTAINER */
.hidden {
    display: none !important;
}

.results-container {
    margin-top: 4rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.results-header {
    background: var(--slate-900);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.results-score-label {
    font-family: var(--font-mono);
    color: var(--blue-100);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.results-tier {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

.results-score {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.results-body {
    padding: 3rem 2rem;
}

.results-summary {
    font-size: 1.25rem;
    color: var(--slate-700);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.risks-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.risks-box h4 {
    color: #991b1b;
    font-family: var(--font-mono);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.risks-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: #7f1d1d;
}

.risks-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

.cta-box-result {
    text-align: center;
    padding: 2rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
}

.cta-box-result h4 {
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.cta-box-result p {
    margin-bottom: 1.5rem;
    color: var(--slate-600);
}