/* ============================================================
   FORMS — guided tools, inquiries, waitlists
   ------------------------------------------------------------
   Every input is labelled, every error is announced, every
   touch target clears 44px.
   ============================================================ */

.field { margin-bottom: 1.15rem; }

.field label,
.fieldset-legend {
  display: block;
  font-family: var(--font-house);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.lit-day .field label, .lit-dawn .field label,
.lit-day .fieldset-legend, .lit-dawn .fieldset-legend { color: var(--gold-burnished); }

.field .hint {
  display: block;
  font-family: var(--font-body);
  font-size: var(--t-xs);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-soft);
  margin-top: 0.3rem;
  line-height: 1.5;
}
.field .hint[hidden] { display: none; }   /* e.g. "TEST10 applied." after the code is changed */

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='date'],
.field input[type='number'],
.field input[type='url'],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1.05rem;
  background: var(--bg-lift, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--edge, var(--gold-whisper));
  border-radius: 0.8rem;
  color: var(--fg, var(--ink-light));
  font-size: 1rem;   /* 16px — stops iOS zooming on focus */
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  font-family: var(--font-body);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.field input::placeholder, .field textarea::placeholder {
  color: var(--fg-soft);
  opacity: 0.65;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: var(--gold-breath);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c89a3c' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 17px;
  padding-right: 2.8rem;
}

/* ---- Error state ---- */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c25b4a; }
.field .err {
  display: none;
  font-size: var(--t-xs);
  color: #e08c7d;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.field.has-error .err { display: block; }
.lit-day .field .err, .lit-dawn .field .err { color: #a8412f; }

/* Error summary at the top of a form — focusable, announced. */
.err-summary {
  border: 1px solid #c25b4a;
  border-radius: var(--curve-soft);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  background: rgba(194, 91, 74, 0.09);
}
.err-summary h3 {
  font-family: var(--font-house);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: #e08c7d;
}
.lit-day .err-summary h3, .lit-dawn .err-summary h3 { color: #a8412f; }
.err-summary li { font-size: var(--t-sm); padding-block: 0.2rem; }
.err-summary a { text-decoration: underline; }
.err-summary[hidden] { display: none; }

/* ============================================================
   CHOICE CARDS
   ------------------------------------------------------------
   Used all through the guided tools. Real radio/checkbox inputs
   underneath, so keyboard and screen readers work normally.
   ============================================================ */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 0.7rem;
}
.choices-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  top: 0; left: 0;
  margin: 0;
  cursor: pointer;
}
.choice > span,
.choice__box {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 62px;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--edge, var(--gold-whisper));
  border-radius: 1rem 1rem 1rem 1.9rem;
  transition: all 0.35s var(--ease);
  height: 100%;
  justify-content: center;
}
.choice__title {
  font-family: var(--font-house);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--fg);
  line-height: 1.3;
}
.choice__sub {
  font-size: var(--t-xs);
  color: var(--fg-soft);
  line-height: 1.45;
}

.choice input:hover + .choice__box,
.choice input:focus-visible + .choice__box {
  border-color: var(--gold);
  background: var(--gold-breath);
}
.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.choice input:checked + .choice__box {
  border-color: var(--gold);
  background: var(--gold-breath);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.choice input:checked + .choice__box .choice__title { color: var(--gold); }
.lit-day .choice input:checked + .choice__box .choice__title,
.lit-dawn .choice input:checked + .choice__box .choice__title { color: var(--gold-burnished); }

/* Checkbox rows (letters preferences, filters) */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  cursor: pointer;
  min-height: 44px;
}
.check-row input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  cursor: pointer;
}
.check-row span { font-size: var(--t-sm); line-height: 1.5; color: var(--fg); }
.check-row .sub { display: block; color: var(--fg-soft); font-size: var(--t-xs); }

/* ============================================================
   GUIDED STEP FLOW
   ============================================================ */
.flow { position: relative; }

.flow__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.flow__dots { display: flex; gap: 0.4rem; flex: 1; }
.flow__dot {
  height: 2px;
  flex: 1;
  background: var(--edge, var(--gold-whisper));
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.flow__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-spiral);
}
.flow__dot.is-done::after, .flow__dot.is-now::after { transform: scaleX(1); }
.flow__count {
  font-family: var(--font-house);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  flex: none;
}

.step__q {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.step__note {
  color: var(--fg-soft);
  font-size: var(--t-sm);
  margin-bottom: var(--space-md);
  max-width: var(--measure);
}

.flow__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--edge);
  flex-wrap: wrap;
}

/* ============================================================
   RESULTS (guided tools)
   ============================================================ */
.results-head { margin-bottom: var(--space-md); }
.results-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--edge);
}
.results-more {
  margin-top: var(--space-md);
  padding: clamp(1.2rem, 1rem + 1.4vw, 1.8rem);
  border: 1px solid var(--edge);
  border-radius: var(--curve-soft) var(--curve-soft) var(--curve-soft) 3rem;
  background: var(--gold-breath);
}

/* ============================================================
   SUCCESS PANEL
   ============================================================ */
.sent {
  text-align: center;
  padding: var(--space-lg) 1rem;
}
.sent__mark {
  width: 62px; height: 62px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.sent__mark svg { width: 27px; height: 27px; }
.sent h2 { margin-bottom: 0.7rem; }
.sent p { color: var(--fg-soft); max-width: 46ch; margin: 0 auto 1.4rem; }

/* A copy of what was sent, so people know what she received. */
.receipt {
  text-align: left;
  max-width: 460px;
  margin: 0 auto var(--space-md);
  border: 1px solid var(--edge);
  border-radius: var(--curve-soft);
  padding: 1.1rem 1.3rem;
}
.receipt h3 {
  font-family: var(--font-house);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.receipt dl { display: grid; gap: 0.4rem; }
.receipt .r-row {
  display: grid;
  grid-template-columns: minmax(80px, 34%) 1fr;
  gap: 0.8rem;
  font-size: var(--t-sm);
}
.receipt dt { color: var(--fg-soft); }
.receipt dd { margin: 0; color: var(--fg); }

/* Two fields side by side where they belong together. */
.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0 1.1rem;
}

/* ============================================================
   INLINE FORMS (waitlist, letters)
   ============================================================ */
.inline-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 480px;
}
.inline-form input { flex: 1; min-width: 200px; }
.inline-form .btn { flex: none; }

/* Consent line under any email capture */
.consent {
  font-size: var(--t-xs);
  color: var(--fg-soft);
  margin-top: 0.8rem;
  line-height: 1.5;
}
