/* Founder Brand Map — reuses the homepage "Book a call" section (.apply, .form)
   from css/style.css so the page looks the same. Only the step parts live here. */

.bm-apply { min-height: 100svh; }
.bm-apply .apply__grid { align-items: start; }
.bm-apply .apply__copy { position: sticky; top: 110px; }
.twen-chip { display: none; align-items: center; gap: 10px; margin: -8px 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--navy); padding: 9px 14px; border-radius: 999px; width: fit-content; }
.is-twen .twen-chip { display: inline-flex; }

/* Progress: the homepage form's top bar, filled step by step */
.bmf { gap: 0; }
.bmf::before { background: #E2E5EA; }
.bmf__bar { position: absolute; left: 0; top: 0; height: 4px; width: 20%; background: linear-gradient(90deg, var(--navy) 70%, var(--red) 70%); transition: width .5s var(--ease); z-index: 1; }
.bmf .form__head { margin-bottom: 20px; }

.step-panel { display: grid; gap: 16px; animation: stepIn .35s var(--ease); }
.step-panel[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.step-panel h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; letter-spacing: -.03em; outline: none; text-wrap: balance; }
.step-panel__sub { margin: -8px 0 4px; color: var(--gray); font-size: 16px; }

/* Fields */
.f { display: grid; gap: 8px; min-width: 0; }
.f[hidden] { display: none; }
.f { gap: 6px; }
.f > label, .f > legend, .f__label { font-size: 13px; font-weight: 600; line-height: 1.4; padding: 0; }
.f__opt { font-weight: 500; color: var(--gray); font-size: 13px; }
.f__help { font-size: 13px; color: var(--gray); margin: -2px 0 0; line-height: 1.45; }
fieldset.f { border: 0; margin: 0; padding: 0; }
.f input[type=text], .f input[type=email], .f input[type=tel], .f select, .f textarea {
  width: 100%; min-height: 48px; font: 400 16px/1.4 var(--font); color: var(--navy);
  padding: 13px 14px; border: 1.5px solid #E2E5EA; border-radius: var(--radius); background: var(--off);
  transition: border-color .3s, background .3s, box-shadow .3s; -webkit-appearance: none; appearance: none;
}
.f textarea { resize: vertical; min-height: 92px; }
.f select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2036' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(10,32,54,.08); }
.f.is-invalid input, .f.is-invalid select, .f.is-invalid textarea { border-color: var(--red); background: #FFF6F6; }
.f__err { display: none; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #B42323; }
.f__err::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #B42323; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.f.is-invalid .f__err { display: flex; }
.f__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.f__qs { display: grid; gap: 10px; }
.f__qs label { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; }
.f__qs span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.phone-in { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }

/* Choice cards & chips (radio / checkbox) */
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #E2E5EA; border-radius: var(--radius); background: var(--off);
  font-size: 15px; font-weight: 500; line-height: 1.3; transition: border-color .2s, background .2s;
}
.choice__box small { display: block; font-weight: 500; color: var(--gray); font-size: 13.5px; margin-top: 2px; }
.choice__mark { flex: none; width: 20px; height: 20px; border: 2px solid #B7BEC9; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.choice--check .choice__mark { border-radius: 4px; }
.choice input:checked + .choice__box { border-color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + .choice__box .choice__mark { border-color: var(--navy); background: var(--navy); }
.choice input:checked + .choice__box .choice__mark::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--red); outline-offset: 2px; }
.choice:hover .choice__box { border-color: #9AA4B2; }
.choices--cards .choice__box { align-items: flex-start; padding: 16px; }
.choices--cards .choice__box b { font-size: 16px; letter-spacing: .02em; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; cursor: pointer; min-height: 44px; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.consent a { text-decoration: underline; }

/* Review */
.review { display: grid; gap: 16px; }
.review__card { border: 1.5px solid #E2E5EA; border-radius: var(--radius); padding: 16px 18px; }
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__head h4 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.review__edit { background: none; border: 0; font: 700 13px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--red); cursor: pointer; padding: 10px 4px; min-height: 44px; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.review dt { color: var(--gray); }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }

/* Nav buttons */
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.step-nav .btn { min-height: 52px; }
.btn--back { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--back:hover { --fg: #fff; }
.step-nav .btn--red { margin-left: auto; }
.bmf__fine { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--gray); }
.bmf__alert { margin: 0; padding: 14px 16px; border-radius: var(--radius); background: #FFF1F1; color: #B42323; font-size: 15px; font-weight: 600; }
.bmf.is-sending [data-submit] { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer (light version for these pages) */
.bm-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0 32px; font-size: 14px; }
.bm-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.bm-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.bm-footer a:hover { color: #fff; }

/* Thank-you */
.ty { padding: clamp(48px, 8vw, 110px) 0; }
.ty__mark { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin-bottom: 28px; animation: pop .6s var(--ease) both; }
.ty__mark svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ty h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.05em; margin-bottom: 24px; text-wrap: balance; }
.ty__lede { font-size: clamp(18px, 1.6vw, 21px); color: #2b3b4d; max-width: 34em; }
.ty__wait { margin-top: clamp(56px, 8vw, 100px); }
.ty__wait h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1; margin-bottom: 28px; }
.ty__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ty__steps li { background: #fff; border-radius: 6px; padding: 24px; box-shadow: 0 1px 0 var(--line); font-size: 18px; font-weight: 600; line-height: 1.35; }
.ty__steps span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 10px; }
.ty__small { margin: 20px 0 0; color: var(--gray); }
.ty__ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; padding: 12px 18px; min-height: 48px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.ty__ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ty__ig svg .dot { fill: currentColor; stroke: none; }
.ty__help { margin-top: clamp(56px, 8vw, 100px); background: var(--navy); color: #fff; border-radius: 10px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.ty__help > * { min-width: 0; }
.ty__help h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; }
.ty__help ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ty__help li { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-light); }

/* Privacy */
.legal { padding: clamp(48px, 8vw, 100px) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: #2b3b4d; font-size: 17px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }

@media (max-width: 960px) {
  .bm-apply .apply__copy { position: static; }
}
@media (max-width: 860px) {
  .ty__help { grid-template-columns: 1fr; }
  .ty__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ty__steps { grid-template-columns: 1fr; }
  .bm-apply { padding-top: 96px; }
  .bm-apply .h-xxl { font-size: 40px; margin-bottom: 16px; }
  .bm-apply .apply__lede { font-size: 17px; margin-bottom: 0; }
  .bm-apply .apply__nos { display: none; }
  .bm-apply .apply__grid { gap: 28px; }
  .bm-apply .form { padding: 22px 18px; }
  .f__row, .choices--2 { grid-template-columns: 1fr; }
  .review dl { grid-template-columns: 1fr; gap: 2px; }
  .review dd { margin-bottom: 10px; }
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .btn { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .step-panel, .ty__mark, .ty__mark svg { animation: none; stroke-dashoffset: 0; }
}


/* Thank-you & privacy pages sit under the fixed nav */
main.ty, main.legal { padding-top: calc(clamp(48px, 8vw, 100px) + 70px); }
