@font-face {
  /* Urbanist (SIL Open Font License): free web stand-in for Gelion, which Formation has no web license for. */
  font-family: "Urbanist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/urbanist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Formation forms: shared styles. Rules live in formation-brand/FORM-STANDARDS.md.
   Brand tokens are copied from formation-brand/tokens.css. */
:root {
  --f-orange: #ca6b3f; --f-clay: #c28870; --f-moss: #4d6452; --f-slate: #7c8688;
  --f-teal: #27494a;   --f-sand: #ccbdb6; --f-mist: #f0f0ee; --f-lake: #427898;
  --f-ink: #1a1a1a; --f-slate-text: #5a6466; --f-orange-text: #a9552d; --f-error: #b3261e;
  --f-font: "Urbanist", "Avenir Next", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: var(--f-mist);
  --card: #ffffff;
  --ink: var(--f-ink);
  --muted: var(--f-slate-text);
  --line: var(--f-sand);
  --soft: #eef1f1;
  --err: var(--f-error);
  color-scheme: light;
}

@supports (background: color-mix(in srgb, red 50%, blue)) { :root { --soft: color-mix(in srgb, var(--f-teal) 7%, white); } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.55 var(--f-font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 640px; margin: 0 auto; padding: 22px 20px 72px; }
.wrap.wide { max-width: 980px; }

/* ---- header ---- */
.brand { display: inline-block; margin: 0 0 30px; }
.brand img { display: block; height: 34px; width: auto; }
h1, h2, h3 { color: var(--f-teal); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); letter-spacing: -0.01em; }
h1::after { content: ""; display: block; width: 100px; height: 4px; background: var(--f-orange); margin-top: 14px; } /* signature orange bar */
.lede { font-size: 1.15rem; color: var(--muted); margin: 18px 0 28px; max-width: 34em; }
a { color: var(--f-teal); text-underline-offset: 3px; }
a:hover { color: var(--f-orange-text); }

/* ---- the form: one calm card, sections separated by space ---- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 32px 32px; box-shadow: 0 1px 2px rgba(39,73,74,.05), 0 10px 30px rgba(39,73,74,.07);
}
.fsection { padding: 30px 0 6px; }
.fsection + .fsection { border-top: 1px solid var(--f-mist); }
.fsection > header { margin: 0 0 20px; }
.fsection h2 { font-size: 1.4rem; }
.fsection .sub { color: var(--muted); margin: 4px 0 0; }

.field { margin: 0 0 22px; }
.field > label, .field legend, .label { display: block; font-weight: 600; font-size: 1.05rem; margin: 0 0 6px; padding: 0; color: var(--ink); }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt { font-weight: 400; font-size: .9rem; color: var(--muted); margin-left: 6px; }
.hint { color: var(--muted); font-size: .98rem; margin: 0 0 8px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 170px; min-width: 0; }
.row.tight > * { flex-basis: 140px; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time],
input[type=number], input[type=url], select, textarea {
  display: block; width: 100%; min-height: 52px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff;
  border: 1px solid var(--f-slate); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2327494a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
input:hover, select:hover, textarea:hover { border-color: var(--f-teal); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--f-teal); box-shadow: 0 0 0 4px rgba(39,73,74,0.22); box-shadow: 0 0 0 4px color-mix(in srgb, var(--f-teal) 22%, transparent); }
input[type=file] { font: inherit; font-size: 1rem; width: 100%; padding: 14px; border: 1.5px dashed var(--f-sand); border-radius: 12px; background: var(--f-mist); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: #fff; background: var(--f-teal); border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }

/* errors: say what's wrong, next to the field, never color alone */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); border-width: 2px; }
.field-error { color: var(--err); font-weight: 600; font-size: .98rem; margin: 8px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.field-error::before { content: "!"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--err); color: #fff; font-size: .8rem; line-height: 20px; text-align: center; font-weight: 700; }
.alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-size: 1rem; }
.alert-error { background: #fdf0ee; border: 1px solid #e8bcb6; color: #7d1a14; }
.alert-error strong { display: block; margin-bottom: 4px; }
.alert-error ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error a { color: inherit; font-weight: 600; }

/* ---- choices: big, easy to tap ---- */
.choices { display: grid; gap: 10px; }
.choices.cols { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (min-width: 560px) { .choices:has(> .choice:last-child:nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; gap: 12px; align-items: flex-start; min-height: 52px; padding: 13px 16px; cursor: pointer;
  border: 1px solid var(--f-sand); border-radius: 12px; background: #fff; font-weight: 400; line-height: 1.35;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--f-teal); }
.choice input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--f-teal); }
.choice:has(input:checked) { border-color: var(--f-teal); background: var(--soft); box-shadow: inset 0 0 0 1px var(--f-teal); font-weight: 600; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(39,73,74,0.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--f-teal) 25%, transparent); }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.choice > span { min-width: 0; }

.reveal { margin: 14px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--f-mist); }
.reveal > .field:last-child { margin-bottom: 0; }
#recurringBlock { margin-bottom: 22px; }
[hidden] { display: none !important; }

/* ---- messages ---- */
.note { background: #ede8e5; background: color-mix(in srgb, var(--f-sand) 35%, white); border-left: 4px solid var(--f-orange); border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-size: 1rem; color: var(--f-teal); }
.info { background: var(--soft); border-radius: 12px; padding: 14px 18px; margin: 24px 0 22px; font-size: 1rem; }
.rules { margin: 0 0 14px; padding-left: 22px; }

/* ---- buttons: White on orange is 3.7:1, so the label stays large and bold (passes WCAG large text) ---- */
.btn, button.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px;
  font: inherit; font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--f-orange);
  border: 0; border-radius: 14px; padding: 14px 28px; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s;
}
.btn:hover, button.primary:hover { background: #ae5c36; background: color-mix(in srgb, var(--f-orange) 86%, black); color: #fff; }
.btn:active, button.primary:active { transform: translateY(1px); }
.btn:focus-visible, button.primary:focus-visible { outline: 4px solid rgba(39,73,74,0.55); outline: 4px solid color-mix(in srgb, var(--f-teal) 55%, transparent); outline-offset: 3px; }
.btn[disabled], button.primary[disabled] { opacity: .6; cursor: wait; }
.btn-quiet { background: #fff; color: var(--f-teal); border: 2px solid var(--f-teal); font-size: 1.05rem; min-height: 50px; width: auto; }
.btn-quiet:hover { background: var(--soft); color: var(--f-teal); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

/* ---- thank-you panel ---- */
.thanks { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; box-shadow: 0 10px 30px rgba(39,73,74,.07); }
.thanks h2 { font-size: 1.7rem; margin-bottom: 10px; }
.thanks .tick { width: 52px; height: 52px; border-radius: 50%; background: var(--f-teal); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }

footer { color: var(--muted); font-size: .95rem; margin-top: 34px; text-align: center; }

/* ---- landing: list of forms ---- */
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.form-list a { display: block; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(39,73,74,.05); transition: border-color .15s, transform .1s; }
.form-list a:hover, .form-list a:focus-visible { border-color: var(--f-orange); transform: translateY(-1px); }
.form-list strong { display: block; font-size: 1.25rem; color: var(--f-teal); margin-bottom: 2px; }
.form-list span { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .form-card { padding: 2px 18px 24px; border-radius: 16px; }
  .thanks { padding: 26px 20px; }
}

/* ---- live preview card, photo preview, numbered steps ---- */
.preview { margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(39,73,74,.05), 0 8px 24px rgba(39,73,74,.07); }
.preview-label { margin: 0; padding: 12px 18px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--f-mist); }
.preview .ph { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); background: var(--soft) center / cover no-repeat; font-size: .95rem; }
.preview .body { padding: 16px 18px 18px; }
.preview h3 { font-size: 1.35rem; margin: 0 0 8px; }
.pv-line { margin: 0 0 4px; }
.pv-line.muted { color: var(--muted); font-size: .95rem; }
.pv-tags { margin: 8px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pv-tags:empty { display: none; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; background: var(--soft); color: var(--f-teal); border-radius: 999px; padding: 3px 12px; }
.photo-preview { margin-top: 12px; }
.photo-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--f-mist); }
.steps { margin: 18px 0; padding-left: 24px; }
.steps li { margin-bottom: 10px; }
.linkbtn { font: inherit; color: var(--f-error); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }

/* a choice card sitting directly inside a field keeps its card look (the generic field label rule must not win) */
.field > label.choice { display: flex; margin: 0; padding: 13px 16px; font-size: 1rem; font-weight: 400; color: var(--ink); }
.field > label.choice:has(input:checked) { font-weight: 600; }

/* date and time: date on its own line on phones, start and end side by side */
.when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.when-row > :first-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .when-row { grid-template-columns: 1.4fr 1fr 1fr; } .when-row > :first-child { grid-column: auto; } }
