﻿/* --- RESET & VARIABLES --- */
:root {
    /* PALETTE */
    --gunmetal: #393d3fff; /* Main Text */
    --white: #fdfdffff; /* Main Background */
    --silver: #c6c5b9ff; /* Borders / Accents */
    --pacific-cyan: #62929eff; /* Primary Buttons / Highlights */
    --blue-slate: #546a7bff; /* Subtext / Secondary Buttons */
    /* SEMANTIC MAPPINGS */
    --color-bg: var(--white);
    --color-bg-alt: #f4f4f6; /* Contrast Background */
    --color-text-main: var(--gunmetal);
    --color-text-sub: var(--blue-slate);
    --color-primary: var(--pacific-cyan);
    --color-primary-hover: #537d8a;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --spacing-container: 1100px;
    --radius-default: 6px;
}

html {
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

h1:focus {
    outline: none;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

h1, h2, h3, h4 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-sub);
    margin-bottom: 1rem;
}

.label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-default);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--white);
}

    .btn-primary:hover {
        background-color: var(--color-primary-hover);
        transform: translateY(-1px);
    }

.btn-ghost {
    background-color: transparent;
    color: var(--color-text-main);
}

    .btn-ghost:hover {
        color: var(--color-primary);
        background-color: rgba(98, 146, 158, 0.1);
    }

/* --- HEADER --- */
.site-header {
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    background-color: rgba(253, 253, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(198, 197, 185, 0.3);
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color: var(--color-text-sub);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

    .nav-item:hover {
        color: var(--color-primary);
    }

.header-actions {
    display: flex;
    gap: 1rem;
}

/* --- SECTIONS --- */
section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.border-top {
    border-top: 1px solid rgba(198, 197, 185, 0.3);
}

/* --- HERO --- */
.hero-section {
    text-align: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .subline {
        font-size: 1.25rem;
        margin: 0 auto 2.5rem auto;
        max-width: 700px;
    }

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- SPLIT LAYOUT (Product / Why) --- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.section-text h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.section-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

    .feature-list li {
        position: relative;
        padding-left: 1.0rem;
        margin-bottom: 0.75rem;
        color: var(--color-text-sub);
        font-weight: 500;
    }

        .feature-list li::before {
            content: "\2022";
            color: var(--color-primary);
            position: absolute;
            left: 0;
            font-weight: bold;
            font-size: 1.2em;
            line-height: 1;
        }

.product-bullets li::before {
    /* Replaced "✓" with "\2713" */
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--pacific-cyan);
    font-weight: 800;
}

/* Visual Placeholder */
.visual-box {
    background-color: #fff;
    height: 400px;
    border-radius: 12px;
    border: 1px solid var(--silver);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    /* IMPORTANT: This ensures the image doesn't bleed past the rounded corners */
    overflow: hidden;
}


.img-cover {
    width: 100%;
    height: 100%;
    /* This makes the image fill the space, cropping edges if necessary to maintain aspect ratio */
    object-fit: cover;
    /* Optional: focuses on the top center if cropping occurs (good for dashboards) */
    object-position: top center;
}

/* --- GRID LAYOUT (Who / How / FAQ) --- */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

    .section-head h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 2.5rem;
}

.simple-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--silver);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- FAQ GRID --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* --- FOOTER --- */
.site-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(198, 197, 185, 0.3);
    color: var(--silver);
    font-size: 0.875rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 {
        /* Scales between 1.8rem and 2.5rem depending on screen width */
        font-size: clamp(1.8rem, 5vw + 1rem, 2.5rem);
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .split-grid, .faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .visual-box {
        height: 250px;
        order: -1;
    }

    .nav-links, .header-actions {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* --- AUTH PAGES ADDITIONS --- */

.auth-section {
    min-height: 80vh; /* Centers the form vertically on the page */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--color-bg-alt); /* Light grey background */
}

.auth-card {
    background-color: var(--white);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border-radius: 12px; /* Matches .visual-box radius */
    border: 1px solid var(--silver);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Matches .visual-box shadow */
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .auth-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

/* Optional wider layout for selected auth pages (privacy, cookies, questionnaire, etc.) */
.auth-section-wide {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

    .auth-section-wide .auth-card {
        max-width: 900px; /* adjust if you want narrower/wider */
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gunmetal);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--silver);
    border-radius: var(--radius-default);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--gunmetal);
    background-color: var(--white);
    margin-bottom: 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-input:focus {
        outline: none;
        border-color: var(--pacific-cyan);
        box-shadow: 0 0 0 3px rgba(98, 146, 158, 0.1);
    }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--blue-slate);
}

.auth-link {
    color: var(--pacific-cyan);
    font-weight: 600;
    cursor: pointer;
}

    .auth-link:hover {
        text-decoration: underline;
    }

/* --- LANGUAGE SELECTOR --- */
.lang-selector-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 1rem; /* Space between selector and Login button */
}

.lang-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-slate);
    pointer-events: none; /* Let clicks pass through to the select */
    z-index: 1;
}

.lang-select {
    appearance: none; /* Hides default arrow */
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid transparent; /* Invisible border by default for cleaner look */
    padding: 0.5rem 1rem 0.5rem 2.25rem; /* Left padding makes room for icon */
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    border-radius: var(--radius-default);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .lang-select:hover {
        color: var(--pacific-cyan);
        background-color: rgba(98, 146, 158, 0.05);
    }

    .lang-select:focus {
        outline: none;
        border-color: var(--pacific-cyan);
    }

/* Custom small arrow to replace default browser one */
.lang-selector-wrapper::after {
    content: "▼";
    font-size: 0.6em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--silver);
    pointer-events: none;
}

/* --- MOBILE NAVIGATION --- */

/* 1. Hamburger Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none; /* Default hidden */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gunmetal);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101; /* Above the sticky header */
}

/* 2. Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 82px; /* Matches header height approx */
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--silver);
    padding: 1rem 0 2rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    /* Animation defaults */
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

    /* Class to slide it in */
    .mobile-nav-overlay.open {
        transform: translateY(0);
    }

/* Mobile Link Styles */
.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gunmetal);
    text-decoration: none;
}

    .mobile-nav-link:hover {
        color: var(--pacific-cyan);
    }

/* --- RESPONSIVE BEHAVIOR --- */
@media (max-width: 768px) {
    /* Hide Desktop Nav */
    .nav-links, .header-actions {
        display: none;
    }

    /* Show Mobile Button */
    .mobile-menu-btn {
        display: block;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}