:root {
    --primary: #047857;
    --accent: #10B981;
    --dark: #111827;
    --light: #F9FAFB;
    --muted: #6B7280;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--light);
    color: var(--dark);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.header-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-icon,
.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.brand-icon {
    object-fit: contain;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
}

.header-nav {
    gap: 22px;
}

.header-nav a {
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
}

.header-nav a:hover {
    color: var(--accent);
}

.hero {
    padding: 64px 0 44px;
    background: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: center;
}

.hero-logo {
    display: block;
    width: min(320px, 100%);
    height: auto;
    margin-bottom: 24px;
}

.logo-fallback {
    margin: 0 0 22px;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.eyebrow,
.panel-label {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.form-heading h2,
.thank-you-card h1 {
    margin: 0;
    color: var(--dark);
    line-height: 1.15;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(2.2rem, 6vw, 4.25rem);
}

.role-type {
    margin: 10px 0 24px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.hero-copy p:not(.eyebrow):not(.role-type):not(.logo-fallback) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
}

.role-panel {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    box-shadow: var(--shadow);
}

.role-panel h2 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 1.5rem;
}

.role-panel p {
    margin: 0 0 24px;
    color: var(--muted);
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
    background: #065f46;
    transform: translateY(-1px);
}

.button-secondary {
    width: 100%;
}

.form-section {
    padding: 48px 0 72px;
}

.form-card,
.thank-you-card {
    width: min(900px, 100%);
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-card {
    padding: clamp(22px, 4vw, 42px);
}

.form-heading {
    margin-bottom: 28px;
}

.form-heading h2 {
    font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.flash {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.flash-error {
    border: 1px solid #FCA5A5;
    background: #FEF2F2;
    color: #991B1B;
}

fieldset {
    margin: 0 0 30px;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid var(--border);
}

fieldset:last-of-type {
    border-bottom: 0;
}

legend {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
}

.field,
.consent {
    margin-bottom: 18px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

label,
.field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 800;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
textarea {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark);
    font: inherit;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    padding: 12px 14px;
}

input[type="file"] {
    padding: 10px;
}

textarea {
    min-height: 132px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(16, 185, 129, 0.22);
    border-color: var(--accent);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.check-option,
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--light);
    font-weight: 700;
}

.check-option input,
.consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.file-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.consent {
    margin-bottom: 24px;
    color: var(--muted);
}

.site-footer {
    padding: 28px 0;
    background: var(--dark);
    color: #D1D5DB;
    text-align: center;
    font-size: 0.95rem;
}

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

.thank-you-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 56px 16px;
}

.thank-you-card {
    padding: clamp(28px, 6vw, 56px);
    text-align: center;
}

.thank-you-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
    margin: 0 auto 24px;
}

.thank-you-card h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.thank-you-card p {
    margin: 8px auto;
    max-width: 520px;
    color: var(--muted);
    font-size: 1.1rem;
}

.thank-you-card .button {
    margin-top: 24px;
}

@media (max-width: 820px) {
    .header-inner,
    .header-nav {
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: column;
        padding: 14px 0;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .role-panel {
        order: -1;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .brand {
        font-size: 1rem;
    }

    .header-nav {
        flex-direction: column;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }
}
