/* ============================================================
   INTRISIO FORM ENGINE
   Multi-step branded forms. Uses the brand variables from
   style.css, so light mode works automatically.
   ============================================================ */

/* .btn sets display:inline-block, which beats the browser default for [hidden].
   Without this, Back and Submit render on every step. */
[hidden] { display: none !important; }

.form-shell { max-width: 760px; margin: 0 auto; }
.intrisio-form { max-width: none; margin: 0; }

/* ---------- progress rail ---------- */
.fprogress { margin-bottom: 40px; }
.fprogress-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 12px;
}
.fprogress-step {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.78rem; color: var(--orange);
}
[data-theme="light"] .fprogress-step { color: var(--orange-text); }
.fprogress-count {
  font-family: 'Oswald', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.08em; color: var(--ice); font-variant-numeric: tabular-nums;
}
.fprogress-track {
  height: 4px; background: rgba(127,127,127,0.22); overflow: hidden;
}
.fprogress-fill {
  height: 100%; width: 0%; background: var(--orange);
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- steps ---------- */
.fstep { display: none; }
.fstep.is-active { display: block; animation: fstepIn 0.3s ease both; }
@keyframes fstepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fstep.is-active { animation: none; }
  .fprogress-fill { transition: none; }
}

.fstep > h2 {
  font-family: 'Anton', sans-serif; text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1;
  color: var(--white); margin-bottom: 10px; letter-spacing: 0.01em;
}
.fstep > .fstep-blurb {
  color: var(--ice); margin-bottom: 32px; max-width: 60ch;
}

/* ---------- fields ---------- */
.intrisio-form .field { margin-bottom: 26px; }
.field .hint {
  display: block; font-family: 'Montserrat', sans-serif;
  text-transform: none; letter-spacing: 0; font-size: 0.85rem;
  color: var(--ice); margin: -2px 0 9px; font-weight: 400;
}
.req { color: var(--orange); margin-left: 3px; }
[data-theme="light"] .req { color: var(--orange-text); }

.intrisio-form textarea { min-height: 120px; resize: vertical; }
.intrisio-form input[type="file"] { padding: 11px 14px; cursor: pointer; }

/* checkbox / radio need to escape the global width:100% */
.choice { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.choice input[type="checkbox"], .choice input[type="radio"] {
  width: 18px; height: 18px; flex: none; margin-top: 3px;
  accent-color: var(--orange); cursor: pointer; padding: 0;
}
.choice span {
  font-family: 'Montserrat', sans-serif; text-transform: none;
  letter-spacing: 0; font-size: 1rem; color: var(--cream);
  margin: 0; display: block; line-height: 1.5;
}

/* validation */
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: #E4674F;
}
.err {
  display: none; color: #E4674F; font-size: 0.85rem; margin-top: 7px;
  font-family: 'Montserrat', sans-serif;
}
.field.has-error .err { display: block; }

/* ---------- gate / notice blocks ---------- */
.fnotice {
  border-left: 3px solid var(--orange);
  background: var(--charcoal);
  padding: 22px 24px; margin-bottom: 32px;
}
.fnotice h3 {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.85rem; color: var(--orange);
  margin-bottom: 12px;
}
[data-theme="light"] .fnotice h3 { color: var(--orange-text); }
.fnotice p { font-size: 0.95rem; color: var(--cream); }
.fnotice p + p { margin-top: 10px; }
.fnotice ol, .fnotice ul { margin: 10px 0 0 20px; font-size: 0.95rem; }
.fnotice li { margin-bottom: 7px; }

/* ---------- review step ---------- */
.review-list { border-top: 1px solid rgba(127,127,127,0.25); margin-bottom: 30px; }
.review-row {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 14px 0; border-bottom: 1px solid rgba(127,127,127,0.18);
}
@media (min-width: 640px) { .review-row { grid-template-columns: 240px 1fr; gap: 20px; } }
.review-q {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.78rem; color: var(--ice);
}
.review-a { color: var(--cream); white-space: pre-wrap; word-break: break-word; }
.review-a.empty { color: var(--ice); font-style: italic; opacity: 0.7; }
.review-sec {
  font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; color: var(--orange);
  padding: 22px 0 6px; border-bottom: none;
}
[data-theme="light"] .review-sec { color: var(--orange-text); }

/* ---------- nav ---------- */
.fnav {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 38px; padding-top: 28px;
  border-top: 1px solid rgba(127,127,127,0.2);
}
.fnav .spacer { flex: 1; }
.fnav .btn { padding: 14px 32px; }
.btn-ghost {
  background: transparent; color: var(--cream);
  outline: 1px solid rgba(127,127,127,0.4); outline-offset: -1px;
}
.btn-ghost:hover { background: var(--charcoal); }

/* ---------- draft chip ---------- */
.fdraft {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ice); margin-top: 18px;
}
.fdraft button {
  background: none; border: none; color: var(--ice); cursor: pointer;
  text-decoration: underline; font-size: 0.82rem; padding: 0; width: auto;
  font-family: 'Montserrat', sans-serif;
}
.fdraft button:hover { color: var(--orange); }
.fsaved { opacity: 0; transition: opacity 0.3s ease; }
.fsaved.show { opacity: 1; }

/* ---------- misc ---------- */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-foot {
  text-align: center; margin-top: 34px; font-size: 0.85rem; color: var(--ice);
}
