/* ---------------------------------------------------------------------------
   FaceIt_BL - FACE IT Program registration
   Pinellas County Schools brand tokens.

   Copied from TobaccoClinic_BL/wwwroot/app.css (11/12/2026) so the converted
   SchoolWiresForms read as one family. The additions FACE IT needs (textarea,
   the Yes/No row) are at the very bottom.

   Source: PCS Branding & Style Guide, updated September 2025 (pages 8-9).
   The token block, base type, buttons and panels are copied from PubInfo_BL
   (which took them from ESS_BL) so the converted ASD apps read as one family.
   A brand retune should land in all three the same way. The form styles at
   the bottom of this file are this app's own.

   WHAT DIFFERS FROM ESS_BL, and why:

   1. Page background. ESS uses --pcs-page-bg #F2F4F8, a cool grey-blue that sits
      quietly behind dense payroll tables. This app is public and it is the first
      thing a prospective family sees of the district, so the ground is a warm
      ivory instead. It also does the practical job of making the two apps
      instantly distinguishable when both are open in a browser - staff run them
      side by side.

   2. Navy and the navy gradient are unchanged. They carry the brand here exactly
      as they do in ESS: the masthead, the hero panel, the primary button.

   3. No Bootstrap. Everything below is the whole stylesheet.

   Retune here - nothing downstream hard-codes a brand color or font family.
   --------------------------------------------------------------------------- */

/* Self-hosted rather than pulled from Google Fonts: this page is served to the
   public internet and should make no third-party requests on a family's behalf.
   Latin subset only. */
@font-face {
    font-family: 'PCS Prompt';
    src: url('fonts/prompt-extrabold-latin.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PCS Oswald';
    src: url('fonts/oswald-semibold-latin.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* --- Primary palette (official, guide p.9) ------------------------- */
    --pcs-navy: #0C173C;  /* Pantone 281C / 655U */
    --pcs-gold: #E4B123;  /* Pantone 110C / 7405U */
    --pcs-sky: #32C0E6;   /* Pantone 298C / 2985U */
    --pcs-lime: #8AB840;  /* Pantone 368C / 2299U */

    /* --- Secondary palette (official, guide p.9) ----------------------- */
    --pcs-dark-green: #008037;
    --pcs-orange: #F58220;
    --pcs-dark-orange: #E15100;
    --pcs-light-yellow: #FFD145;

    /* --- Navy ramp (derived from the brand navy hue, ~222deg) ---------- */
    --pcs-navy-950: #070E24;
    --pcs-navy-900: #0C173C; /* the brand navy itself */
    --pcs-navy-700: #17264F;
    --pcs-navy-600: #22376B;
    --pcs-navy-500: #2E4A8E;
    --pcs-navy-050: #EDF0F6;

    /* --- Neutrals ------------------------------------------------------
       Ink is the near-black the brand guide sets its own body copy in. The
       warm greys below are biased toward the ivory ground rather than toward
       navy (which is what ESS does) so borders read as chosen, not muddy. */
    --pcs-ink: #231F20;
    --pcs-ink-muted: #5B5449;

    /* THE CHANGE: warm ivory ground instead of ESS cool grey-blue. */
    --pcs-page-bg: #FBF7EF;
    --pcs-page-bg-deep: #F3EDDF; /* alternating bands, e.g. the step rail */

    --pcs-surface: #FFFFFF;
    --pcs-surface-sunken: #F7F2E7;
    --pcs-border: #E2DACA;
    --pcs-border-strong: #CFC4AD;

    /* --- Link + focus --------------------------------------------------
       The guide specifies no link color. This is a navy-hue step lightened
       until it reads as clickable next to body ink: 10.6:1 on white.
       Sky blue is NOT used for text - 2.1:1 on white, decorative only. */
    --pcs-link: #1D3A80;
    --pcs-link-hover: #0C173C;
    --pcs-focus: #2E4A8E;
    --pcs-focus-on-navy: #32C0E6;

    /* --- Status ---------------------------------------------------------
       Both are paired with an icon and a text label everywhere they appear;
       nothing in this app is signalled by color alone. */
    --pcs-error: #A3231B;
    --pcs-error-bg: #FCF0EE;
    --pcs-error-border: #E9C4C0;
    --pcs-notice-bg: #F1F7E8;
    --pcs-notice-border: #CFE0B4;

    --pcs-radius: 12px;
    --pcs-radius-sm: 8px;
    --pcs-shadow: 0 1px 2px rgba(35, 31, 32, 0.05), 0 6px 18px rgba(35, 31, 32, 0.07);
    --pcs-shadow-lift: 0 2px 4px rgba(35, 31, 32, 0.08), 0 14px 30px rgba(35, 31, 32, 0.14);

    /* Narrower than the ESS shell (1288px). This app is a single form - a
       wider column would just stretch the measure of running prose past
       comfortable reading length. */
    --pcs-shell-max: 960px;

    /* --- Type roles (guide p.8) ---------------------------------------- */
    --pcs-font-display: 'PCS Prompt', 'Segoe UI', Tahoma, sans-serif;
    --pcs-font-subhead: 'PCS Oswald', 'Segoe UI', Tahoma, sans-serif;
    --pcs-font-body: Calibri, Carlito, 'Segoe UI', system-ui, sans-serif;
    --pcs-font-body-light: 'Calibri Light', Calibri, Carlito, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    /* Smooth scroll makes the in-page jumps (skip link, the error summary's
       links to each field) legible rather than jarring. */
    scroll-behavior: smooth;
}

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

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--pcs-font-body);
    /* 17px base. Larger than the ESS default on purpose: this page is read by
       parents and grandparents on phones, not by staff at a desk all day. */
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--pcs-ink);
    background-color: var(--pcs-page-bg);
    -webkit-text-size-adjust: 100%;
}

/* Guide p.8: both display faces are used in all caps, never mixed case. */
h1, h2, h3 {
    font-family: var(--pcs-font-subhead);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--pcs-navy);
    margin: 0 0 0.5rem;
    text-wrap: balance;
}

h1 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--pcs-link);
    text-underline-offset: 0.15em;
}

a:hover { color: var(--pcs-link-hover); }

/* Keyboard focus is brand navy and always visible. Never removed anywhere in
   this stylesheet - on a form that some families will fill in entirely from the
   keyboard, the ring is the only thing telling them where they are. */
:focus-visible {
    outline: 3px solid var(--pcs-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Skip link - visually hidden until focused.
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--pcs-navy);
    color: #fff;
    font-family: var(--pcs-font-subhead);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom-right-radius: var(--pcs-radius-sm);
}

.skip-link:focus {
    left: 0;
    color: #fff;
    outline: 3px solid var(--pcs-focus-on-navy);
    outline-offset: -3px;
}

/* --------------------------------------------------------------------------
   Shared content column. Header, hero and every panel measure from this, so
   their left edges line up at all widths.
   -------------------------------------------------------------------------- */
.pcs-shell {
    width: 100%;
    max-width: var(--pcs-shell-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* --------------------------------------------------------------------------
   Buttons.
   Minimum 44px tall everywhere: the WCAG 2.5.5 target size, and the difference
   between a usable and an infuriating form on a phone. The legacy buttons were
   70x35 CSS pixels.
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* justify-content centers the label as a block; this centers the LINES
       within it once a long label wraps. Without it a wrapped <a class="btn">
       reads left-aligned while a <button class="btn"> beside it looks centred,
       because the two elements disagree on the inherited default. */
    text-align: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.5rem;
    font-family: var(--pcs-font-subhead);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--pcs-radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
    /* The brand navy gradient, kept from the district look. */
    background: linear-gradient(135deg, var(--pcs-navy-700) 0%, var(--pcs-navy-950) 100%);
    color: #fff;
    box-shadow: var(--pcs-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pcs-navy-600) 0%, var(--pcs-navy-900) 100%);
    box-shadow: var(--pcs-shadow-lift);
    color: #fff;
}

.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    background: var(--pcs-surface);
    border-color: var(--pcs-border-strong);
    color: var(--pcs-navy);
}

.btn-secondary:hover {
    background: var(--pcs-surface-sunken);
    border-color: var(--pcs-navy-500);
    color: var(--pcs-navy);
}


/* --------------------------------------------------------------------------
   Panels - the one surface primitive the whole app is built from.
   -------------------------------------------------------------------------- */
.panel {
    background: var(--pcs-surface);
    border: 1px solid var(--pcs-border);
    border-radius: var(--pcs-radius);
    box-shadow: var(--pcs-shadow);
    padding: clamp(1.1rem, 3vw, 1.75rem);
}

.panel + .panel { margin-top: 1.25rem; }

.panel-heading {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.lede {
    font-family: var(--pcs-font-body-light);
    font-size: 1.09rem;
    color: var(--pcs-ink);
    max-width: 62ch;
}

.muted {
    color: var(--pcs-ink-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Visually hidden, but present for assistive technology.
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Tobacco Clinic sign-up - everything below is this app's own.
   Global rather than scoped: the form, the confirmation and the error page
   share these, and scoped CSS cannot reach markup rendered by a child
   component (ErrorFor, Req, ContactPhone).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Intro panel.
   -------------------------------------------------------------------------- */
.intro {
    border-top: 5px solid var(--pcs-navy);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.6rem 1.25rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    padding: 0.6rem 0.85rem;
    border-radius: var(--pcs-radius-sm);
    background: var(--pcs-navy-050);
    border-left: 4px solid var(--pcs-sky);
}

.facts strong {
    color: var(--pcs-navy);
}

/* --------------------------------------------------------------------------
   Alerts. Each carries a heading or a bold lead-in, so none relies on color
   alone.
   -------------------------------------------------------------------------- */
.alert {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--pcs-radius-sm);
    border: 1px solid;
}

.alert:focus { outline: 3px solid var(--pcs-focus); outline-offset: 2px; }

.alert-error {
    background: var(--pcs-error-bg);
    border-color: var(--pcs-error-border);
    border-left: 6px solid var(--pcs-error);
}

.alert-title {
    font-size: 1.05rem;
    color: var(--pcs-error);
    margin-bottom: 0.35rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert a { color: var(--pcs-error); font-weight: 600; }

/* The Development rollback banner. Loud on purpose: a tester must never be in
   doubt that nothing was saved. */
.alert-test {
    background: var(--pcs-light-yellow);
    border-color: var(--pcs-gold);
    color: var(--pcs-ink);
}

/* --------------------------------------------------------------------------
   The form.
   -------------------------------------------------------------------------- */
.signup-form {
    margin-top: 1.25rem;
}

.required-note {
    margin: 0 0 0.5rem;
    color: var(--pcs-ink-muted);
    font-size: 0.95rem;
}

.req {
    color: var(--pcs-error);
    font-weight: 700;
    margin-left: 0.15rem;
}

.optional {
    color: var(--pcs-ink-muted);
    font-weight: 400;
    font-size: 0.95rem;
}

fieldset {
    margin: 0;
    padding: 1.25rem 0 0.25rem;
    border: 0;
    border-top: 1px solid var(--pcs-border);
    min-width: 0; /* fieldsets otherwise refuse to shrink below their content */
}

fieldset + fieldset { margin-top: 0.75rem; }

fieldset:focus { outline: none; }

legend {
    padding: 0;
    margin-bottom: 0.75rem;
    font-family: var(--pcs-font-subhead);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--pcs-navy);
}

/* Fieldsets that are themselves one question (dates, offenses, reason) carry
   an id for the error summary to link to. Their legend IS the question, so it
   is set like a label rather than a section heading. */
fieldset[id] > legend {
    font-family: var(--pcs-font-body);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pcs-ink);
    margin-bottom: 0.25rem;
}

.field { margin-bottom: 1.1rem; }

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0 1.25rem;
}

.field-narrow { max-width: 12rem; }
.field-medium { max-width: 20rem; }

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.hint {
    margin: 0 0 0.4rem;
    color: var(--pcs-ink-muted);
    font-size: 0.95rem;
}

/* The hint under the school pair belongs to both, so it sits below them. */
.field-row + .hint { margin: -0.6rem 0 1.1rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    display: block;
    width: 100%;
    min-height: 48px; /* same target size as the buttons */
    padding: 0.6rem 0.75rem;
    font: inherit;
    color: var(--pcs-ink);
    background: var(--pcs-surface);
    border: 2px solid var(--pcs-border-strong);
    border-radius: var(--pcs-radius-sm);
}

input:hover, select:hover { border-color: var(--pcs-navy-500); }

input:focus-visible, select:focus-visible {
    border-color: var(--pcs-focus);
    outline: 3px solid var(--pcs-focus);
    outline-offset: 1px;
}

[aria-invalid="true"] {
    border-color: var(--pcs-error) !important;
    background-color: var(--pcs-error-bg);
}

.field-error {
    margin: 0.35rem 0 0;
    color: var(--pcs-error);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Radio and checkbox rows - each a full-width tap target. */
.choice-list {
    display: grid;
    gap: 0.5rem;
}

.choice-list-inline {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    padding: 0.7rem 0.85rem;
    font-weight: 400;
    border: 2px solid var(--pcs-border);
    border-radius: var(--pcs-radius-sm);
    background: var(--pcs-surface);
    cursor: pointer;
}

.choice:hover { border-color: var(--pcs-navy-500); }

.choice:has(input:checked) {
    border-color: var(--pcs-navy);
    background: var(--pcs-navy-050);
}

.choice input {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    accent-color: var(--pcs-navy);
}

.agreement p { max-width: 70ch; }

.confidential {
    font-weight: 700;
    color: var(--pcs-navy);
}

.choice-agree {
    display: inline-flex;
    font-weight: 700;
}

.submit-row {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pcs-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.submit-row .btn { min-width: min(16rem, 100%); }

.btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

/* Honeypot (see Services/BotGuard.cs). Moved off screen rather than display:none,
   which some bots check for and skip. aria-hidden and tabindex="-1" in the markup
   keep it away from screen readers and the keyboard. */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Confirmation and error pages.
   -------------------------------------------------------------------------- */
.confirmation { border-top: 5px solid var(--pcs-dark-green); }

.done-badge {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 0 0.5rem;
    border-radius: 50%;
    background: var(--pcs-dark-green);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

.confirmation h2 { margin-top: 1.25rem; }

.next-steps { padding-left: 1.25rem; }
.next-steps li + li { margin-top: 0.35rem; }

.status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--pcs-radius-sm);
}

.status-ok {
    background: var(--pcs-notice-bg);
    border: 1px solid var(--pcs-notice-border);
}

.status-warn {
    background: var(--pcs-error-bg);
    border: 1px solid var(--pcs-error-border);
    border-left: 6px solid var(--pcs-error);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Print - the confirmation page is the one a family may print or save.
   -------------------------------------------------------------------------- */
@media print {
    body { background: #fff; font-size: 11pt; }

    .skip-link,
    .site-footer nav,
    .actions,
    .btn { display: none !important; }

    .panel { box-shadow: none; border: 1px solid #999; }
}


/* --------------------------------------------------------------------------
   FACE IT additions (not in TobaccoClinic_BL). Same look as the inputs above.
   -------------------------------------------------------------------------- */
textarea {
    display: block;
    width: 100%;
    min-height: 6rem;
    padding: 0.6rem 0.75rem;
    font: inherit;
    line-height: 1.45;
    color: var(--pcs-ink);
    background: var(--pcs-surface);
    border: 2px solid var(--pcs-border-strong);
    border-radius: var(--pcs-radius-sm);
    resize: vertical;
}

textarea:hover { border-color: var(--pcs-navy-500); }

textarea:focus-visible {
    border-color: var(--pcs-focus);
    outline: 3px solid var(--pcs-focus);
    outline-offset: 1px;
}

/* Yes / No: two compact choices side by side rather than full-width rows. */
.choice-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice-compact {
    padding: 0.55rem 1.25rem 0.55rem 0.85rem;
}

/* The location under each class's weekday. */
.choice-detail {
    display: block;
    color: var(--pcs-ink-muted);
    font-size: 0.95rem;
}
