:root {
  --c2s-dark: #1A2E1A;
  --c2s-accent: #4A8C3F;
  --c2s-bg: #F6F7F3;
  --c2s-card: #FFFFFF;
  --c2s-border: #E1E4DC;
  --c2s-error: #B3261E;
  --c2s-text-muted: #5B6B5B;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--c2s-bg);
  color: var(--c2s-dark);
}

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

.test-banner {
  background: #B3261E;
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.app-header {
  background: var(--c2s-dark);
  padding: 20px 20px 16px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.progress {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  background: var(--c2s-accent);
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
}

.app-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 40px;
}

.card {
  background: var(--c2s-card);
  border-radius: 16px;
  border: 1px solid var(--c2s-border);
  padding: 24px 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 2px 10px rgba(26, 46, 26, 0.06);
}

.back-link {
  display: inline-block;
  color: var(--c2s-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.back-link:hover {
  color: var(--c2s-accent);
}

.question {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--c2s-dark);
}

.subtext {
  color: var(--c2s-text-muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.error {
  color: var(--c2s-error);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--c2s-text-muted);
  margin: 14px 0 6px;
}

.field-label:first-of-type {
  margin-top: 0;
}

.text-form {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.text-form input[type="text"],
.text-form input[type="email"],
.text-form input[type="date"],
.text-form textarea {
  width: 100%;
  font-size: 1rem;
  padding: 14px;
  border: 1px solid var(--c2s-border);
  border-radius: 10px;
  background: var(--c2s-bg);
  color: var(--c2s-dark);
  margin-bottom: 12px;
  font-family: inherit;
}

.text-form input:focus,
.text-form textarea:focus {
  outline: none;
  border-color: var(--c2s-accent);
  background: #fff;
}

.text-form textarea {
  resize: vertical;
  min-height: 90px;
}

.next-btn {
  margin-top: 8px;
  background: var(--c2s-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
}

.next-btn:hover {
  background: #3f7834;
}

.choice-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--c2s-bg);
  border: 1px solid var(--c2s-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--c2s-dark);
  cursor: pointer;
  min-height: 48px;
  font-family: inherit;
}

.choice-btn:hover,
.choice-btn:focus {
  border-color: var(--c2s-accent);
  background: #EFF5EC;
  outline: none;
}

.choice-label {
  font-weight: 600;
}

.choice-desc {
  font-size: 0.85rem;
  color: var(--c2s-text-muted);
  margin-top: 2px;
}

.summary {
  margin: 16px 0 24px;
}

.summary dt {
  font-size: 0.78rem;
  color: var(--c2s-text-muted);
  margin-top: 12px;
}

.summary dd {
  margin: 2px 0 0;
  font-size: 1rem;
  color: var(--c2s-dark);
}

.fineprint {
  text-align: center;
  color: var(--c2s-text-muted);
  font-size: 0.85rem;
  margin: 14px 0 0;
}

.thank-you {
  text-align: center;
  padding: 40px 24px;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c2s-accent);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

@media (min-width: 600px) {
  .app-header {
    padding: 24px 32px 20px;
  }

  .app-main {
    padding: 40px 16px 60px;
  }

  .card {
    padding: 32px;
  }
}
