:root {
  --ink: #17211d;
  --muted: #52635b;
  --line: rgba(23, 33, 29, 0.12);
  --panel: rgba(255, 255, 255, 0.94);
  --green: #1f8a5b;
  --green-dark: #146542;
  --mint: #e7f5ee;
  --coral: #e86f51;
  --coral-soft: #fff0eb;
  --shadow: 0 24px 70px rgba(15, 33, 24, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f7f3;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #eaf2ec;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(241, 249, 244, 0.98) 0%, rgba(241, 249, 244, 0.9) 37%, rgba(241, 249, 244, 0.32) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 33, 24, 0.18)),
    url("/assets/hero-care.png") center / cover no-repeat;
}

.hero__content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 520px);
  gap: 44px;
  align-items: center;
  padding: 44px 0;
}

.brand-panel {
  max-width: 560px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(31, 138, 91, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  font-weight: 800;
}

h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 620px;
}

.brand-panel p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(31, 138, 91, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #284a3a;
  font-size: 14px;
  font-weight: 650;
}

.quiz-panel {
  width: 100%;
  min-height: 570px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.progress {
  height: 8px;
  margin: 14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2ebe5;
}

.progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--coral));
  transition: width 220ms ease;
}

.quiz-body {
  min-height: 330px;
  flex: 1;
}

.question-title {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
}

.question-hint {
  margin: -6px 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.option-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 138, 91, 0.42);
}

.option-button.is-selected {
  border-color: rgba(31, 138, 91, 0.8);
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 750;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted);
  font-weight: 700;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.text-input {
  min-height: 54px;
  padding: 0 15px;
}

.text-area {
  min-height: 132px;
  padding: 14px 15px;
  resize: vertical;
}

.text-input:focus,
.text-area:focus {
  border-color: rgba(31, 138, 91, 0.82);
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.12);
}

.error-text {
  min-height: 22px;
  margin: 12px 0 0;
  color: #b5442c;
  font-size: 14px;
  font-weight: 700;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.summary-item {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-item span:first-child {
  color: var(--muted);
  font-size: 14px;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.button--primary {
  min-width: 148px;
  color: #fff;
  background: var(--green);
}

.button--primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button--ghost {
  color: var(--green-dark);
  background: #edf7f1;
}

.privacy-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.success-state {
  display: grid;
  align-content: center;
  min-height: 460px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.success-state h2 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
}

.success-state p {
  margin: 0 auto;
  max-width: 380px;
  color: var(--muted);
  line-height: 1.55;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 860px) {
  .hero__backdrop {
    background:
      linear-gradient(180deg, rgba(241, 249, 244, 0.98) 0%, rgba(241, 249, 244, 0.92) 48%, rgba(241, 249, 244, 0.72) 100%),
      url("/assets/hero-care.png") center top / cover no-repeat;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: 28px 0;
  }

  .brand-panel p {
    font-size: 16px;
  }

  .quiz-panel {
    min-height: 0;
    padding: 22px;
  }

  .question-title {
    font-size: 23px;
  }
}

@media (max-width: 520px) {
  .hero__content {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 38px;
  }

  .quiz-actions {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }

  .summary-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
