/* Design tokens */
:root {
  --purple:    #9372DB;
  --purple-dk: #7d5fc9;
  --orange:    #F7941E;
  --text:      #111111;
  --text-sec:  #555555;
  --bg:        #FFFFFF;
  --border:    #E5E5E5;
  --error:     #C0392B;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  /* Signature orange top stripe */
  border-top: 3px solid var(--orange);
}

/* ── Layout ────────────────────────────────────────────── */

.page-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

@media (min-width: 640px) {
  .page-wrap { padding: 48px; }
}

/* ── Disclaimer screen ─────────────────────────────────── */

#disclaimer-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.logo-lg {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 32px;
}

.disclaimer-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--text);
}

.disclaimer-body {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto 40px;
}

/* START button */
.btn-start {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-start:hover { background: var(--purple-dk); }

.btn-start:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-start { transition: none; }
}

/* ── Form screen ───────────────────────────────────────── */

#form-screen { display: none; }
#form-screen.visible { display: block; }

.logo-sm {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.form-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 40px;
}

/* ── Form sections ─────────────────────────────────────── */

.form-section { margin-bottom: 48px; }

.section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--text);
}

.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 32px;
}

/* ── Field groups ──────────────────────────────────────── */

.field-group {
  position: relative;
  margin-bottom: 32px;
}

.field-group label:not(.radio-label):not(.checkbox-label) {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.field-help {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

/* Bottom-border inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 96px;
  border-bottom: 1px solid var(--border);
  padding-top: 8px;
}

input:focus,
select:focus,
textarea:focus {
  border-bottom: 2px solid var(--purple);
}

@media (prefers-reduced-motion: reduce) {
  input, select, textarea { transition: none; }
}

/* Error state */
.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea {
  border-bottom-color: var(--error);
}

.field-error {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--error);
}

/* Required indicator */
.required-indicator {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
  text-align: right;
  margin-top: 4px;
}

/* ── Radio buttons ─────────────────────────────────────── */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  min-height: 44px;
}

.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin: 0;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
  min-height: unset;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--purple);
  background: radial-gradient(circle, var(--purple) 45%, #fff 50%);
}

.radio-label input[type="radio"]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ── Checkbox ──────────────────────────────────────────── */

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  min-height: 44px;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 3px;
  margin: 3px 0 0;
  padding: 0;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  min-height: unset;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--purple);
  border-color: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ── Conditional fields ────────────────────────────────── */

.field-group[data-show-if-field] { display: none; }
.field-group[data-show-if-field].visible { display: block; }

/* ── Submit button ─────────────────────────────────────── */

.btn-submit {
  width: 100%;
  background: var(--purple);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 8px;
  transition: background 0.15s;
  min-height: 52px;
}

.btn-submit:hover { background: var(--purple-dk); }

.btn-submit:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.submit-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 16px;
  line-height: 1.5;
}

/* ── Alerts ────────────────────────────────────────────── */

.alert-error {
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-left: 4px solid var(--error);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--error);
}

/* ── Success page ──────────────────────────────────────── */

.success-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.success-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 16px;
}

.success-body {
  font-size: 16px;
  color: var(--text-sec);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.success-contact {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 32px;
}

.link-return {
  color: var(--purple);
  font-size: 15px;
  text-decoration: underline;
}

/* ── Utilities ─────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot — visually hidden, not sr-only (bots read CSS too) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
