/* ===== Palette =====
   Brown   #4c2c21 (brand) • dark #2e1a13 • light #6b4032 • soft #f6efeb
   Black   #000000 (used for Section 3 header + step-pill done state)
   White / neutral grays (slate-*) make up the rest.
*/

/* ===== Form primitives ===== */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4c2c21;
  margin-bottom: 0.35rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #4c2c21;
  box-shadow: 0 0 0 3px rgba(76, 44, 33, 0.18);
}
.form-input::placeholder { color: #94a3b8; }

/* Error states use brand brown bold — strong without leaving the palette */
.form-error {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4c2c21;
}
.form-error.visible { display: block; }
.form-input.has-error { border-color: #4c2c21; background-color: #f6efeb; }
.form-input.has-error:focus { box-shadow: 0 0 0 3px rgba(76, 44, 33, 0.22); }

/* ===== Section header bars ===== */
.section-header {
  background: #4c2c21;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
}
/* Section 3 (Eligibility) — black for visual differentiation from brown */
.section-header--accent {
  background: #000000;
}

/* ===== Radio tile group (Section 2) ===== */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.5rem;
  margin-top: 0.4rem;
}
@media (min-width: 640px) {
  .radio-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .radio-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.radio-tile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  cursor: pointer;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.radio-tile:hover { border-color: #94a3b8; }
.radio-tile input { accent-color: #4c2c21; }
.radio-tile:has(input:checked) {
  border-color: #4c2c21;
  background: #f6efeb;
}

/* ===== Eligibility cards (Section 3) ===== */
.elig-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  background: #fff;
}
.elig-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4c2c21;
  margin-bottom: 0.7rem;
}
.elig-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #334155;
  transition: background 0.15s;
}
.elig-option:hover { background: #f8fafc; }
.elig-option input { accent-color: #4c2c21; margin-top: 0.18rem; }
.elig-option:has(input:checked) {
  background: #f6efeb;
  color: #4c2c21;
}

/* ===== Step pills ===== */
.step-pill {
  flex: 1;
  text-align: center;
  padding: 0.25rem 0;
  color: #94a3b8;
}
.step-pill.is-active { color: #4c2c21; font-weight: 600; }
.step-pill.is-done   { color: #000000; font-weight: 600; }

/* ===== Signature fonts ===== */
.font-great-vibes    { font-family: 'Great Vibes', cursive; }
.font-dancing-script { font-family: 'Dancing Script', cursive; }
.font-allura         { font-family: 'Allura', cursive; }
.font-sacramento     { font-family: 'Sacramento', cursive; }

#sigModal.is-open { display: flex; }

/* ===== Section transitions ===== */
section[data-step] { animation: stepIn 0.25s ease-out; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 640px) {
  .form-input { font-size: 1rem; }
  .section-header { font-size: 0.95rem; padding: 0.7rem 1rem; }
}

/* ===== Skip link (a11y) ===== */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  background: #4c2c21;
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== Sticky header — shadow when scrolled ===== */
#siteHeader.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #4c2c21 0%, #43271d 100%);
}

/* ===== Scroll-reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== Focus visibility for nav anchors ===== */
header nav a:focus-visible,
footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Marker reset for FAQ <details> on Safari ===== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ===== Hero shadow underline accent ===== */
@media (max-width: 380px) {
  h1 { font-size: 2.25rem !important; line-height: 1.1 !important; }
}
