:root {
  --ink: #14212f;
  --ink-soft: #4a5867;
  --paper: #f5f2ec;
  --card: #ffffff;
  --line: #d9d3c7;
  --brand: #1c3d5a;
  --brand-dark: #142c42;
  --accent: #2f6f5e;
  --error: #a3261b;
  --error-bg: #fbeeec;
  --focus: #e0a526;
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--brand); }

.topbar {
  background: var(--brand);
  color: #fff;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 15px;
}
.topbar svg { flex: none; }

.wrap {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

main.wrap { padding-top: 32px; padding-bottom: 40px; }

h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-weight: 700;
}

h2 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.lead { font-size: 19px; margin: 0 0 12px; }
.lead + p { color: var(--ink-soft); margin: 0 0 26px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 1px 2px rgba(20, 33, 47, 0.04), 0 8px 24px rgba(20, 33, 47, 0.06);
}
@media (min-width: 520px) { .card { padding: 28px; } }

.field { margin-bottom: 18px; }

label, legend {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
legend { padding: 0; }

.hint {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 6px;
  font-weight: 400;
}

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #b9b2a4;
  border-radius: 8px;
  padding: 12px 12px;
  min-height: 48px;
  appearance: none;
}
input:focus-visible, button:focus-visible, .check input:focus-visible + span, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
input[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }

.zip input { max-width: 160px; }

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.contact-pair { display: grid; gap: 12px; }
@media (min-width: 520px) { .contact-pair { grid-template-columns: 1fr 1fr; } }
.contact-pair label { font-weight: 500; font-size: 15px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #faf8f4;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 0;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--brand);
}

.error-msg {
  display: block;
  color: var(--error);
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}
.error-msg:empty { display: none; }

.form-alert {
  background: var(--error-bg);
  border: 1px solid #e8c3be;
  color: var(--error);
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-alert[hidden] { display: none; }

.turnstile-slot { margin: 18px 0 6px; min-height: 65px; }

.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button.primary {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  padding: 15px 20px;
  min-height: 54px;
  cursor: pointer;
  margin-top: 12px;
}
button.primary:hover { background: var(--brand-dark); }
button.primary[disabled] { opacity: 0.7; cursor: progress; }

.fine {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 0 0;
  text-align: center;
}

section.info { margin-top: 36px; }
section.info + section.info { margin-top: 28px; }

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}
footer .wrap { padding-top: 18px; padding-bottom: 28px; }

/* Thank-you page */
.done-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.actions .primary { width: auto; margin-top: 0; }
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 4px;
  font-weight: 600;
}
.copied { color: var(--accent); font-weight: 600; margin-top: 10px; min-height: 1.5em; }

noscript .form-alert { display: block; }

/* ---------- Computer screens: two columns ---------- */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .wrap { max-width: 1140px; padding-left: 40px; padding-right: 40px; }
  .wrap.narrow { max-width: 720px; }

  .topbar .wrap { padding-top: 18px; padding-bottom: 18px; font-size: 16px; }

  main.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    grid-template-areas:
      "intro form"
      "aside form";
    grid-template-rows: auto 1fr;
    column-gap: 72px;
    align-items: start;
    padding-top: 52px;
    padding-bottom: 80px;
  }
  .page .intro { grid-area: intro; }
  .page .aside { grid-area: aside; }
  .page form.card { grid-area: form; padding: 34px 34px 28px; }

  h1 { font-size: 54px; margin-bottom: 22px; }
  .lead { font-size: 22px; line-height: 1.5; }
  .lead + p { font-size: 19px; margin-bottom: 0; }

  .page .aside {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
  }
  .page .aside section.info:first-child { margin-top: 0; }

  main.narrow { padding-top: 64px; padding-bottom: 80px; }
  main.narrow .card { padding: 40px; }
  main.narrow h1 { font-size: 44px; }
}

@media (min-width: 1200px) {
  .wrap { max-width: 1200px; }
  main.page { column-gap: 96px; grid-template-columns: minmax(0, 1fr) 520px; }
}
