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

:root {
  --bg: #f7f6f3;
  --white: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #2d6a4f;
  --accent-hover: #245a41;
  --accent-light: #e8f4ee;
  --accent-border: #2d6a4f;
  --border: #e2e2e2;
  --border-hover: #aaaaaa;
  --disabled-bg: #c5d9cf;
  --error: #c0392b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── SCREENS ── */

.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

.screen.active {
  display: flex;
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── INTRO ── */

#screen-intro {
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}

#screen-intro .container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.intro-content {
  max-width: 560px;
  width: 100%;
}

.intro-content h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.subheading {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.intro-content .body-copy {
  margin-bottom: 40px;
}

.body-copy p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:disabled {
  background: var(--disabled-bg);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-next {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  font-size: 16px;
}

/* ── PROGRESS BAR ── */

.progress-bar-container {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.progress-bar-inner {
  max-width: 680px;
  margin: 0 auto;
}

.progress-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── QUESTION ── */

#screen-question .container {
  flex: 1;
  padding-top: 44px;
  padding-bottom: 64px;
}

.question-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.question-text {
  font-size: clamp(18px, 2.8vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.question-context {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
  font-style: italic;
}

/* ── ANSWER CARDS ── */

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.25s ease both;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.option-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.option-card:active {
  transform: translateY(0);
}

.option-card.selected {
  border-color: var(--accent-border);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow-sm);
  transform: translateY(0);
}

.option-label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  margin-top: 2px;
}

.option-card.selected .option-label {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.option-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── EMAIL SCREEN ── */

#screen-email {
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}

#screen-email .container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.email-content {
  max-width: 480px;
  width: 100%;
}

.email-content h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}

.email-content .body-copy {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

#email-form .btn-primary {
  width: 100%;
  padding: 15px;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.error-message {
  font-size: 14px;
  color: var(--error);
  text-align: center;
  margin-top: 10px;
  min-height: 20px;
  line-height: 1.5;
}

/* ── CONFIRMATION ── */

#screen-confirmation {
  align-items: center;
  justify-content: center;
}

#screen-confirmation .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.confirmation-content {
  max-width: 460px;
  text-align: center;
  padding: 40px 0;
}

.checkmark {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
  margin: 0 auto 28px;
}

.confirmation-content h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.confirmation-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── RESPONSIVE ── */

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  #screen-intro {
    padding: 48px 0;
  }

  #screen-question .container {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .option-card {
    padding: 14px 14px;
    gap: 12px;
  }

  .option-title {
    font-size: 14px;
  }

  .option-description {
    font-size: 13px;
  }

  .btn-next {
    margin-top: 20px;
  }

  #screen-email {
    padding: 48px 0;
  }
}
