/* FinnSana help page (the contact form) and the company page (the facts list). Uses the site tokens from style.css,
   so light and dark follow the site. Contrast: text and borders meet WCAG 2.1 AA (1.4.3 text, 1.4.11 field borders).
   Loaded by /finnsana/help/ and /company/. No change to style.css is needed: the one new token (--danger) is set here. */
:root { --danger: #b3261e; }             /* 6.1:1 on --bg, 6.5:1 on white */
@media (prefers-color-scheme: dark) {
  :root { --danger: #ffb4ab; }           /* 11.3:1 on --bg, 10.4:1 on --surface */
}

/* The small Finnish line above the h1. It sits in the green page hero, which already sets white text. */
.help-kicker { margin: 0 0 var(--s-2); font-weight: 700; letter-spacing: .02em; color: inherit; opacity: .95; }

.help-form { display: grid; gap: var(--s-5); margin-top: var(--s-5); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.help-field { display: grid; gap: var(--s-2); }
.help-field label { font-weight: 700; }
.help-optional, .help-required { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.help-form input[type="text"], .help-form input[type="email"], .help-form select, .help-form textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); font: inherit; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--muted); border-radius: var(--radius-sm);
}
.help-form textarea { resize: vertical; min-height: 10rem; }
.help-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.help-form :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.help-hint { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.help-error { margin: 0; color: var(--danger); font-weight: 700; font-size: var(--fs-sm); }
.help-error::before { content: "⚠ "; }
.help-noscript { margin: 0 0 var(--s-4); padding: var(--s-4); border: 2px solid var(--danger); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.help-error-summary { padding: var(--s-4); border: 2px solid var(--danger); border-radius: var(--radius-sm); }
.help-error-summary h3 { margin: 0 0 var(--s-2); font-size: var(--fs-base); }
.help-error-summary a { color: var(--danger); font-weight: 700; }
.help-submit { justify-self: start; min-height: 48px; }
.help-submit[disabled] { opacity: .6; cursor: progress; }

/* Layered privacy notice under the Send button: one short line first, the details on request. */
.help-privacy { margin-top: calc(-1 * var(--s-3)); font-size: var(--fs-sm); color: var(--muted); }
.help-privacy > p { margin: 0 0 var(--s-2); }
.help-privacy a { color: var(--brand); }
.help-privacy details { padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); background: var(--bg-alt); }
.help-privacy summary { cursor: pointer; font-weight: 700; color: var(--text); min-height: 44px; display: flex; align-items: center; }
.help-privacy ul { margin: var(--s-2) 0 0; padding-left: 1.1rem; }
.help-privacy li { margin-bottom: var(--s-1); }

.help-status { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--radius-sm); border: 2px solid var(--brand); background: var(--brand-soft); font-weight: 700; }
.help-status[data-kind="error"] { border-color: var(--danger); background: transparent; }
/* The spam trap: off screen for people, still in the form for robots. Not display:none (some bots skip those). */
.help-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Company page: the facts as a two-column list, one column on phones. */
.company-facts { display: grid; grid-template-columns: minmax(9rem, max-content) 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0; }
.company-facts dt { font-weight: 700; }
.company-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .company-facts { grid-template-columns: 1fr; gap: 0; } .company-facts dd { margin-bottom: var(--s-3); } }
