:root {
  --brand-primary: #41af64;
  --brand-primary-dark: #329a53;
  --brand-primary-soft: #eaf1d4;
  --brand-primary-soft-deep: #dce8bf;
  --brand-ink: #243127;
  --brand-muted: #5d6d60;
  --brand-surface: rgba(255, 255, 255, 0.94);
  --brand-border: rgba(65, 175, 100, 0.16);
  --brand-shadow: rgba(46, 92, 57, 0.12);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top left, rgba(65, 175, 100, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbf2 0, #f4f8ea 42%, #eef5df 100%);
  color: var(--brand-ink);
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

#root {
  min-height: 100vh;
}

.appShell {
  min-height: 100vh;
  padding: 32px 16px 48px;
}

.introScreen,
.formScreen,
.testContainer,
.answerContainer {
  max-width: 1080px;
  margin: 0 auto;
}

.heroPanel,
.formPanel,
.resultPanel {
  position: relative;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  box-shadow: 0 20px 60px var(--brand-shadow);
  overflow: hidden;
}

.heroPanel::before,
.formPanel::before,
.resultPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(65, 175, 100, 0.14), transparent 32%),
    radial-gradient(circle at bottom left, rgba(234, 241, 212, 0.9), transparent 38%);
  pointer-events: none;
}

.heroPanel .row,
.formPanel .row,
.resultPanel .row {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary-dark);
}

.heroTitle {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.3rem, 3.4vw, 4rem);
  line-height: 0.98;
  font-weight: 700;
  color: var(--brand-ink);
}

.heroLead {
  max-width: 42rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--brand-muted);
}

.heroAside {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--brand-primary) 0, var(--brand-primary-dark) 100%);
  color: #f6fff4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: auto;
}

.heroAsideTitle {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
}

.heroAsideText {
  margin: 0;
  color: rgba(246, 255, 244, 0.86);
  line-height: 1.65;
}

.heroAccent {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(234, 241, 212, 0.22);
  font-size: 0.9rem;
  color: #f6fff4;
}

.formPanel,
.resultPanel {
  padding: 28px;
}

.formTitle,
.resultTitle {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  color: var(--brand-ink);
}

.formDescription,
.resultLead {
  margin: 0 0 1.25rem;
  color: var(--brand-muted);
  line-height: 1.7;
}

.contactForm .form-group {
  margin-bottom: 1rem;
}

.contactForm label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.contactForm .form-control {
  height: auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(65, 175, 100, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.contactForm .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(65, 175, 100, 0.14);
}

.formHint {
  margin-top: 1rem;
  color: #6a7d6d;
  font-size: 0.95rem;
  line-height: 1.6;
}

.formConsent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1.25rem;
}

.formConsentCheckbox {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 0.12rem;
  border-radius: 5px;
  background: #f0b323;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  flex: 0 0 auto;
}

.formConsentCheckbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #1f3b28;
  border-bottom: 2px solid #1f3b28;
  transform: rotate(40deg);
}

.formConsentText {
  margin-top: 0;
  margin-bottom: 0;
  color: #4c5e52;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fieldError {
  margin-top: 0.4rem;
  color: #b42318;
  font-size: 0.9rem;
}

.buttonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.buttonRow .btn {
  min-width: 180px;
}

.heroButtonRow--mobile {
  display: none;
}

.statusBanner {
  margin-bottom: 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.statusBanner--pending {
  background: rgba(234, 241, 212, 0.9);
  color: #58704d;
}

.statusBanner--success {
  background: rgba(65, 175, 100, 0.14);
  color: #1f7a3c;
}

.statusBanner--error {
  background: #fef3f2;
  color: #b42318;
}

.statusBanner--skipped {
  background: rgba(234, 241, 212, 0.9);
  color: #58704d;
}

.testContainer {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  margin-top: 4vh;
  margin-bottom: 4vh;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 60px var(--brand-shadow);
}

.questionMeta {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary-dark);
}

.question {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: var(--brand-ink);
}

.answerContainer {
  min-height: 100vh;
}

.answerCard {
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(46, 92, 57, 0.08);
}

.answerCard .card-body {
  padding: 1.4rem 1.5rem;
}

.answerSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 1.5rem;
}

.answerSummary strong {
  font-size: 1.1rem;
  color: var(--brand-ink);
}

.summaryBadge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-dark);
  font-weight: 600;
}

.restartButton {
  display: flex !important;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0 !important;
}

.progress {
  height: 1.2rem;
  border-radius: 999px;
  background-color: rgba(234, 241, 212, 0.9);
}

.progress-bar,
.bg-primary {
  background-color: var(--brand-primary) !important;
}

.btn {
  border-radius: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

.btn-primary,
.btn-success {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  background-color: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
  color: #fff !important;
}

.btn-outline-secondary {
  color: var(--brand-primary-dark);
  border-color: rgba(65, 175, 100, 0.35);
  background: rgba(234, 241, 212, 0.45);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  color: #1d4f2b !important;
  border-color: rgba(65, 175, 100, 0.5) !important;
  background: rgba(234, 241, 212, 0.85) !important;
}

.btn-danger {
  background-color: #d8e6bb;
  border-color: #d8e6bb;
  color: #36503e;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  background-color: #cddfb0 !important;
  border-color: #cddfb0 !important;
  color: #2b4432 !important;
}

.btn-warning {
  background-color: #90cc9f;
  border-color: #90cc9f;
  color: #1e3e28;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #7bc18d !important;
  border-color: #7bc18d !important;
  color: #183420 !important;
}

.answerContainer a.d-flex.align-self-center.text-center.p-4 {
  display: flex !important;
  width: fit-content;
  align-items: center;
  justify-content: center;
  align-self: center !important;
  margin: 2rem auto 3rem !important;
  padding: 0.375rem 0.75rem !important;
  background-color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 0.25rem;
  color: #fff;
  text-decoration: none;
  line-height: 1.5;
}

.answerContainer a.d-flex.align-self-center.text-center.p-4:hover {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  color: #fff;
}

@media (max-width: 991.98px) {
  .appShell {
    padding: 20px 12px 36px;
  }

  .heroTitle {
    max-width: none;
  }

  .heroAside {
    margin-top: 1rem;
    margin-left: 0;
  }

  .heroButtonRow--desktop {
    display: none;
  }

  .heroButtonRow--mobile {
    display: flex;
  }

  .testContainer {
    margin-top: 2vh;
    margin-bottom: 2vh;
    padding: 16px;
  }

  .buttonRow .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .formPanel,
  .resultPanel {
    padding: 22px 18px;
  }

  .heroAside {
    padding: 22px;
  }

  .formTitle,
  .resultTitle {
    font-size: 1.65rem;
  }
}
