/* =====================================================================
   annaknoll.com — TRAVEL / fare watch page
   Loads AFTER travel.css and inherits its tokens, type, and rhythm.
   This file adds only what the form needs.

   Hue stays green: a fare watch is travel craft. No violet accent here.
   Accessibility contract: AAA (7:1) text, AA (3:1) non-text.

   Contrast, measured (tools/ramps.py conventions, verified 2026-08-18):
     label g700 on white ......... 8.45:1
     input text i900 on white .... 14.99:1
     help text i700 on white ......8.87:1
     help text i700 on g100 .......7.60:1
     input border i500 on white .. 3.73:1   ← NOT --line (i200 is 1.35:1,
                                              fine as a decorative hairline,
                                              far too weak for a control edge)
     focus ring g900 on white .... 14.60:1
   ===================================================================== */

/* ---------- Form shell ---------- */
.watch-form { display: grid; gap: 22px; }

/* Two-up on wider screens; the pairs are short fields that read as a unit.
   align-items:start matters: without it a column whose partner carries help
   text gets stretched to match, and its input grows taller than the one beside
   it. Tops align, bottoms are free to differ. */
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 560px) {
  .field-pair { grid-template-columns: 1fr; }
}

.field-row { display: grid; gap: 7px; }

.field-row label {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  color: var(--accent);
}

/* Requirement is stated in words, never by colour or an asterisk alone —
   design-system.md rule 4. Every field is required except where this says
   otherwise, so only the exceptions are marked. */
.field-row label .opt {
  font-family: 'Faustina', Georgia, serif;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.field-row .help {
  font-family: 'Faustina', Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.watch-form input[type="text"],
.watch-form input[type="email"],
.watch-form input[type="number"],
.watch-form textarea {
  width: 100%;
  min-height: 48px;                 /* ≥44px target, SC 2.5.8 */
  font-family: 'Faustina', Georgia, serif;
  font-size: 17px;                  /* ≥16px stops iOS zooming on focus */
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--i500);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .18s ease;
}

.watch-form textarea { min-height: 96px; resize: vertical; }

.watch-form input:hover,
.watch-form textarea:hover { border-color: var(--i600); }

.watch-form input:focus-visible,
.watch-form textarea:focus-visible,
.watch-form button:focus-visible,
.watch-form input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--g900);
  outline-offset: 3px;
  border-color: var(--g700);
}

/* Currency prefix. The $ is decorative next to a labelled numeric field, so
   it is hidden from the accessibility tree rather than read out on every tab. */
.money { position: relative; }
.money .sym {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  font-family: 'Faustina', Georgia, serif;
  font-size: 17px;
  color: var(--text-secondary);
  pointer-events: none;
}
/* Needs to outrank .watch-form input[type="number"] above, which also sets
   padding and was winning — the $ sat on top of the first digit. Matching the
   attribute selector too makes this unambiguous rather than order-dependent. */
.watch-form .money input[type="number"] { padding-left: 32px; }

/* ---------- Consent ---------- */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: var(--g100);
  border: 1px solid var(--g200);
  padding: 18px 20px;
}
.consent input[type="checkbox"] {
  width: 22px; height: 22px;
  margin-top: 2px;
  accent-color: var(--g700);
  flex: none;
}
.consent label {
  font-family: 'Faustina', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}
/* Spans both columns so the note isn't squeezed into a 185px gutter next to
   the checkbox on a phone. */
.consent .note {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-family: 'Faustina', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ---------- Submit ---------- */
.watch-form button[type="submit"] {
  justify-self: start;
  min-height: 52px;
  border: none;
  border-bottom: 3px solid var(--g900);   /* non-colour affordance */
  background: var(--g700);
  color: #fff;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: .01em;
  padding: 15px 34px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(1, 48, 25, 0.20);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.watch-form button[type="submit"]:hover {
  background: var(--g800);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(1, 48, 25, 0.26);
}

.after-submit {
  font-family: 'Faustina', Georgia, serif;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* ---------- Prose blocks ---------- */
/* :not(.eyebrow) so a section whose heading IS the eyebrow keeps the small
   uppercase label. "How it works" is an h2 for the document outline — a section
   with content and no heading is invisible to heading navigation — but it should
   still look like a label, not a title. */
.card h2:not(.eyebrow) {
  font-family: 'Faustina', Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 4.6vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--display);
  margin-bottom: 14px;
  text-wrap: balance;
}
.card h3 {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--accent);
  margin-bottom: 6px;
}
.card p { font-size: 17px; max-width: 68ch; }
.card p + p { margin-top: 15px; }

/* Numbered steps. The number is decorative reinforcement — the list is an
   <ol>, so order survives grayscale and a screen reader announces it. */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--g700);
  color: #fff;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 50%;
}
.steps li p { font-size: 16.5px; margin: 0; }
.steps li strong {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: var(--display);
  margin-bottom: 3px;
}

/* An honest caveat, marked by a rule rather than a colour wash. */
.caveat {
  border-left: 4px solid var(--keyline);
  padding-left: 20px;
}
.caveat p { font-size: 16.5px; color: var(--text-secondary); }

.back-link {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .watch-form button[type="submit"]:hover { transform: none !important; }
}
