/* ==========================================================================
   State Training — coming soon page
   One stylesheet for every state domain. The only per-state differences are
   the accent variables in the "State accents" block below.
   ========================================================================== */

/* ---- Base tokens ---------------------------------------------------------- */
:root {
    --ink: #2a2222;
    --muted: #625856;
    --line: #e7dfdb;
    --paper: #ffffff;
    --tint: #faf6f3;
    --error: #b3261e;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(42, 34, 34, .06), 0 8px 24px rgba(42, 34, 34, .08);
    --font: "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- State accents (sampled from the logos) ------------------------------- */
.state-qld {
    --accent: #702038;        /* buttons, links, headings accents */
    --accent-dark: #481020;   /* footer, hover */
    --accent-light: #a8586f;  /* decoration only (not for text) */
    --accent-soft: #f8edf0;   /* tinted backgrounds */
    --ring: rgba(112, 32, 56, .35);
}

.state-vic {
    --accent: #507028;
    --accent-dark: #344a18;
    --accent-light: #78a040;
    --accent-soft: #f1f6ea;
    --ring: rgba(80, 112, 40, .35);
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; margin-bottom: .35em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Icons ---------------------------------------------------------------- */
.icon {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    vertical-align: -.2em;
}
.icon-sm { width: 1em; height: 1em; vertical-align: -.12em; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: 0 24px;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
    color: #fff; background: var(--accent);
    border: 2px solid var(--accent); border-radius: 999px;
    transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; margin-top: auto; }
.text-link:hover { text-decoration: underline; }

/* ---- Header --------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 56px; width: auto; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
    padding: 40px 0 56px;
    background: radial-gradient(900px 420px at 85% 0%, var(--accent-soft), rgba(255, 255, 255, 0) 70%);
}
.hero-inner { display: grid; gap: 40px; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 18px; padding: 6px 14px;
    font-size: .875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: .875rem; color: var(--muted); }

/* Illustrative preview card */
.preview {
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
    padding: 20px; box-shadow: var(--shadow); max-width: 480px; width: 100%; justify-self: center;
}
.preview-search {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border: 2px solid var(--accent); border-radius: 12px;
    color: var(--muted); font-weight: 600;
}
.preview-search .icon { color: var(--accent); }
.preview-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.preview-chips span { padding: 4px 12px; font-size: .85rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.preview-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 0; border-top: 1px solid var(--line);
}
.preview-row strong { display: block; line-height: 1.3; }
.preview-row small { color: var(--muted); }
.badge {
    display: inline-flex; align-items: center; gap: 4px; flex: none;
    padding: 3px 10px; font-size: .75rem; font-weight: 800; line-height: 1.3;
    color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px;
}
.preview-check { margin-top: 6px; padding: 16px; background: var(--accent-soft); border-radius: 12px; }
.preview-check strong { display: block; margin-bottom: 10px; }
.progress { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; }
.progress span { display: block; width: 33%; height: 100%; background: var(--accent); border-radius: 999px; }
.preview-check small { display: block; margin-top: 6px; color: var(--muted); }
.preview-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---- Sections ------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-accent { background: var(--accent-soft); }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 40em; margin-bottom: 2em; }
.group-title {
    margin: 2.2em 0 1em; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.section-intro + .group-title { margin-top: 0; }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 1.5em; }
.group-title + .cards { margin-top: 0; }
.card {
    display: flex; flex-direction: column; gap: 0;
    padding: 24px; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.card p { color: var(--muted); margin-bottom: 1em; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-bottom: 16px;
    color: var(--accent); background: var(--accent-soft); border-radius: 50%;
}
.card-icon .icon { width: 24px; height: 24px; }
.card-later { background: transparent; border-style: dashed; border-color: var(--accent-light); }

/* ---- Register ------------------------------------------------------------- */
.register-grid { display: grid; gap: 32px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-weight: 600; }
.ticks .icon { margin-top: .2em; padding: 3px; color: #fff; background: var(--accent); border-radius: 50%; stroke-width: 3; }

.form-card { padding: 24px; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px;
    font: inherit; color: var(--ink); background: #fff;
    border: 2px solid #cdc2be; border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field-error { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--error); }

/* Honeypot: off-screen, not display:none (some bots skip display:none fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin-bottom: 18px; min-height: 65px; }

.form-status { margin: 14px 0 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
#eoi-form .fine { margin: 14px 0 0; }

.success { text-align: center; padding: 16px 0; }
.success:focus { outline: none; }
.success-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 16px;
    color: #fff; background: var(--accent); border-radius: 50%;
}
.success-icon .icon { width: 32px; height: 32px; stroke-width: 3; }
.success p { color: var(--muted); margin: 0; }

/* ---- Callout + footer ----------------------------------------------------- */
.callout { padding: 28px 0; border-top: 1px solid var(--line); }
.callout p { margin: 0; text-align: center; font-size: .95rem; color: var(--muted); }
.callout a { font-weight: 700; }

.site-footer { padding: 28px 0; color: #fff; background: var(--accent-dark); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-inner p { margin: 0; font-size: .95rem; }
.footer-credit { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); }
.footer-credit p { margin: 0; font-size: .875rem; opacity: .9; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---- Wider screens -------------------------------------------------------- */
@media (min-width: 640px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
    .logo img { height: 64px; }
}

@media (min-width: 900px) {
    .hero { padding: 64px 0 80px; }
    .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
    .cards:not(.cards-two):not(.cards-four) { grid-template-columns: repeat(3, 1fr); }
    .cards-four { grid-template-columns: repeat(4, 1fr); }
    .register-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
    .form-card { padding: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
