/* Public pages (pre-registration and privacy notice). Plain CSS on purpose: the server has no Node build step.
   Mobile first, large touch targets and high contrast for people filling the form from a truck cab. */

:root {
    --ink: #14213d;
    --muted: #4a5568;
    --brand: #0b6e4f;
    --brand-dark: #08513a;
    --surface: #ffffff;
    --background: #f4f6f8;
    --border: #c9d1d9;
    --danger: #a4161a;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--background);
}

a { color: var(--brand-dark); }

.site-header {
    padding: 16px 20px;
    background: var(--brand);
}

.brand {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 21px; margin: 28px 0 8px; }

.lead { font-size: 20px; color: var(--muted); }

.benefits { padding-left: 22px; }
.benefits li { margin-bottom: 8px; }

.choices { display: grid; gap: 16px; margin-top: 24px; }

.choice {
    display: block;
    padding: 20px;
    border: 2px solid var(--brand);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.choice:hover, .choice:focus { background: #e8f5ef; }
.choice-title { display: block; font-size: 22px; font-weight: 700; color: var(--brand-dark); }
.choice-text { display: block; margin-top: 4px; color: var(--muted); }

.notice {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.notice.success { border-color: var(--brand); }

.errors {
    margin: 16px 0;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: #fdecea;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.form { display: flex; flex-direction: column; }

.form label, .form legend { margin-top: 18px; font-weight: 600; }

.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form input[type="number"],
.form select, .form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
}

.form input:focus, .form select:focus, .form textarea:focus {
    outline: 3px solid #9ad1b9;
    border-color: var(--brand);
}

.form fieldset { margin: 0; padding: 0; border: 0; }

.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-weight: 400 !important;
}

.check input { width: 26px; height: 26px; margin: 2px 0 0; flex-shrink: 0; }

.consent { margin-top: 22px !important; }

.optional { font-weight: 400; color: var(--muted); }

.button {
    margin-top: 28px;
    padding: 18px;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.button:hover, .button:focus { background: var(--brand-dark); }

/* Hidden from people, visible to bots. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.legal p, .legal li { color: var(--ink); }
.version { margin-top: 32px; color: var(--muted); font-size: 15px; }

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    padding: 24px 20px;
    font-size: 15px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}
