/* ── Site header ────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 40px 0 32px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0;
}

.header-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.header-desc {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Theme Toggle Switch ────────────────────────────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.toggle-track {
  width: 50px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  position: relative;
  transition: background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:focus-visible .toggle-track {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  color: var(--navy);
}

:root[data-theme="dark"] .toggle-thumb {
  transform: translateX(22px);
  background: #1e293b;
  color: var(--amber);
}

.icon-light, .icon-dark {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

:root[data-theme="light"] .icon-dark { opacity: 0; transform: scale(0.5); }
:root[data-theme="light"] .icon-light { opacity: 1; transform: scale(1); }

:root[data-theme="dark"] .icon-light { opacity: 0; transform: scale(0.5); }
:root[data-theme="dark"] .icon-dark { opacity: 1; transform: scale(1); }

/* ── Main / form wrapper ────────────────────────────────────────────────────── */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

#discoveryForm {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ── Individual section ─────────────────────────────────────────────────────── */
.form-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type { border-bottom: none; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ── Form footer ────────────────────────────────────────────────────────────── */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.5;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-section { padding: 22px 18px; }
  .form-footer  { flex-direction: column; align-items: flex-start; padding: 18px; }
}
