/* Override: lighter borders, error color for form */
:root { --color-text: #333333; --color-border: #333333; --shadow-lift: 8px 8px 0 0 rgba(0,0,0,0.18); --color-error: #d32f2f; }

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

body {
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.header {
  background: var(--color-bg);
  border-bottom: var(--border-thick);
  padding: 32px 24px 28px;
  text-align: center;
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.logo svg {
  height: 100px;
  width: 100px;
}

.header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0;
}

.header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  background: var(--color-accent);
  margin: 14px auto 0;
}

.header p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* ── CONTAINER ── */
.container {
  max-width: 620px;
  margin: 28px auto 64px;
  padding: 0 20px;
}

/* ── INTRO NOTE ── */
.intro-note {
  background: var(--color-accent);
  border: var(--border-base);
  box-shadow: var(--shadow-base);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--color-on-accent);
  font-weight: 600;
  line-height: 1.5;
}

/* ── FORM CARDS ── */
.form-card {
  background: var(--color-bg);
  border: var(--border-base);
  box-shadow: var(--shadow-base);
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
}

.form-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translate(-1px, -1px);
}

.form-card:focus-within {
  border-color: var(--color-primary);
  box-shadow: 6px 6px 0 0 rgba(0, 102, 255, 0.18);
}

/* ── QUESTION NUMBER ── */
.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  border: none;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.q-num--optional {
  background: var(--color-text-muted);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: auto;
  padding: 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
}

/* ── LABELS & HINTS ── */
label.question {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.35;
}

.hint {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.req {
  color: var(--color-primary);
  font-weight: 800;
}

/* ── INPUTS ── */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border: var(--border-base);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  border-radius: 0;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

/* ── RADIO PILLS (grid = equal width) ── */
.radio-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: var(--border-base);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.12s;
  background: var(--color-bg);
  user-select: none;
  min-height: 44px;
  line-height: 1.2;
}

.radio-pill label:hover {
  background: var(--color-surface);
  box-shadow: 3px 3px 0 0 rgba(0,0,0,0.06);
}

.radio-pill input[type="radio"]:checked + label {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-border);
  box-shadow: var(--shadow-base);
}

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

/* ── VALIDATION ── */
.form-card.has-error {
  border-color: var(--color-error);
}

.form-card.has-error input,
.form-card.has-error textarea {
  border-color: var(--color-error);
}

.error-msg {
  display: none;
  font-size: 0.84rem;
  color: var(--color-error);
  font-weight: 600;
  margin-top: 8px;
}

.form-card.has-error .error-msg {
  display: block;
}

/* ── ERROR BANNER ── */
.error-banner {
  display: none;
  background: #fff0f0;
  border: 2px solid var(--color-error);
  box-shadow: var(--shadow-base);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-error);
}

/* ── SUBMIT ── */
.submit-area {
  text-align: center;
  margin-top: 24px;
}

.submit-btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: var(--border-base);
  box-shadow: var(--shadow-base);
  padding: 14px 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  border-radius: 0;
}

.submit-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.submit-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 rgba(0,0,0,0.12);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── SUCCESS ── */
.success-view {
  display: none;
  text-align: center;
  padding: 48px 24px 64px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  border: var(--border-base);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-on-accent);
}

.success-view h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.success-view h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--color-accent);
  margin: 12px auto 0;
}

.success-view p {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 400px;
  margin: 14px auto 0;
  line-height: 1.5;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  border-top: 1px solid #e0e0e0;
}

.footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .header { padding: 24px 16px 22px; }
  .logo svg { height: 72px; width: 72px; }
  .form-card { padding: 18px 16px; }
  .radio-row { grid-template-columns: 1fr 1fr; }
  .submit-btn { width: 100%; }
}
