@font-face { font-family: 'Bowlby One'; src: url(/fonts/bowlby-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Anton'; src: url(/fonts/anton-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --blue: #1b4f8a;
  --blue-deep: #133a66;
  --orange: #ff7a1a;
  --white: #ffffff;
  --mist: #c9d6e6;   /* secondary text on blue */
  --ink: #0f1f33;    /* text inside white fields */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--white);
  /* Blueprint: the kit's title-card backdrop (fine white grid on engineering blue), major line every 5 cells */
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  background-attachment: fixed;
  font: 400 17px/1.5 Inter, system-ui, sans-serif;
}
main { max-width: 560px; padding: 20px 20px 40px; margin: 0 auto 0 max(0px, calc(50vw - 420px)); }

.mark { display: inline-block; font: 400 22px/1 Anton, Impact, sans-serif; letter-spacing: .01em; color: var(--orange); text-decoration: none; }
.mark span { color: var(--white); }

h1 { font: 400 clamp(32px, 8.5vw, 46px)/1.05 'Bowlby One', Impact, sans-serif; margin: 40px 0 16px; }
.lede + .lede { margin-top: -18px; }
.lede { margin: 0 0 32px; font-size: 18px; max-width: 34em; }

form { display: grid; gap: 22px; }
label, legend { display: block; font-weight: 700; font-size: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input:not([type=checkbox]):not([type=radio]), textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 12px;
  font: 400 17px/1.4 Inter, system-ui, sans-serif; color: var(--ink);
  background: var(--white); border: 2px solid var(--white); border-radius: 4px;
}
textarea { resize: vertical; min-height: 120px; }
::placeholder { color: #6b7a8c; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { font-weight: 400; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 9px 14px; min-height: 44px; line-height: 22px;
  border: 2px solid rgba(255,255,255,.55); border-radius: 4px; cursor: pointer; user-select: none;
}
.chips input:checked + span { background: var(--white); color: var(--blue); border-color: var(--white); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
#other-text { display: none; }
.chips:has(#other-box:checked) + #other-text { display: block; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  margin-top: 6px; padding: 16px 20px; width: 100%;
  font: 700 18px/1 Inter, system-ui, sans-serif; color: var(--ink);
  background: var(--orange); border: 0; border-radius: 4px; cursor: pointer;
}
button:active { background: #e86a0c; }
button:disabled { opacity: .6; cursor: progress; }
button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.error { margin: 0; padding: 10px 12px; background: var(--blue-deep); border-left: 4px solid var(--orange); font-weight: 700; }
.error[hidden] { display: none; }

.thanks { display: none; font: 400 clamp(22px, 6vw, 28px)/1.25 'Bowlby One', Impact, sans-serif; margin: 8px 0 0; }
.sent form { display: none; }
.sent .thanks { display: block; }

.alt { margin: 28px 0 0; color: var(--mist); }
.alt a { color: var(--white); text-underline-offset: 3px; }

footer { margin-top: 56px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.25); color: var(--mist); font-size: 15px; }

@media (max-width: 380px) { .pair { grid-template-columns: 1fr; } }

details summary { font-weight: 700; cursor: pointer; list-style: none; padding: 4px 0; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: '+ '; color: var(--orange); }
details[open] summary::before { content: '\2212  '; }
details summary span { font-weight: 400; color: var(--mist); }
details .chips { margin-top: 10px; }

.phone { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.phone select {
  margin-top: 8px; padding: 12px 8px; max-width: 9.5em;
  font: 400 17px/1.4 Inter, system-ui, sans-serif; color: var(--ink);
  background: var(--white); border: 2px solid var(--white); border-radius: 4px;
}
.phone select:focus { outline: none; border-color: var(--orange); }
