:root {
  --ink: #1c2522;
  --muted: #62706b;
  --line: #d8e0dc;
  --panel: #ffffff;
  --soft: #f5f7f2;
  --mint: #88c9a1;
  --teal: #176b66;
  --coral: #df745f;
  --gold: #e0b84f;
  --focus: #1e7c76;
  --shadow: 0 24px 80px rgba(31, 50, 44, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(136, 201, 161, 0.22), transparent 34%),
    linear-gradient(315deg, rgba(223, 116, 95, 0.14), transparent 28%),
    var(--soft);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 4vw, 52px);
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px);
  align-items: center;
}

.intro-panel {
  position: sticky;
  top: 32px;
  align-self: start;
  padding-top: clamp(8px, 3vh, 52px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--teal);
  box-shadow: 0 18px 36px rgba(23, 107, 102, 0.24);
}

.brand-mark svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
}

.eyebrow {
  margin: 32px 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 460px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-image-card {
  margin: 34px 0 0;
  border: 1px solid rgba(216, 224, 220, 0.9);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.survey-panel {
  border: 1px solid rgba(216, 224, 220, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

form {
  padding: clamp(18px, 3.2vw, 36px);
}

.progress-wrap {
  height: 8px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: #e8eee9;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--gold));
  transition: width 180ms ease;
}

.form-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.section-heading {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.step-pill {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7f3eb;
  color: var(--teal);
  font-weight: 800;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.section-heading p,
.privacy-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.align-end {
  align-items: end;
}

.field,
.choice-group {
  display: grid;
  gap: 8px;
}

.field span,
.choice-group legend {
  color: #31413c;
  font-size: 0.9rem;
  font-weight: 700;
}

.choice-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(30, 124, 118, 0.14);
}

.segmented,
.checkbox-grid {
  display: grid;
  gap: 10px;
}

.segmented {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented label,
.checkbox-grid label,
.consent-row {
  display: flex;
  min-height: 46px;
  gap: 10px;
  align-items: center;
  border: 1px solid #cfd9d4;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  cursor: pointer;
}

.segmented input,
.checkbox-grid input,
.consent-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.segmented span,
.checkbox-grid span,
.consent-row span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.segmented label:has(input:checked),
.checkbox-grid label:has(input:checked),
.consent-row:has(input:checked) {
  border-color: var(--teal);
  background: #eef8f1;
}

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

.form-actions {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.privacy-note {
  max-width: 390px;
}

.submit-button {
  display: inline-flex;
  min-height: 52px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(23, 107, 102, 0.26);
}

.submit-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.submit-button:hover {
  background: #115c58;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.error-message {
  min-height: 18px;
  color: #b33f31;
  font-size: 0.8rem;
  font-weight: 700;
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea,
.choice-group.is-invalid .segmented {
  border-color: #c94b3c;
}

.form-message {
  display: none;
  margin-top: 18px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background: #e7f5ec;
  color: #1b6042;
}

.form-message.error {
  background: #fdecea;
  color: #a43b30;
}

.care-ideas-result {
  margin: 0 clamp(18px, 3.2vw, 36px) clamp(18px, 3.2vw, 36px);
  border: 1px solid #d9ddd1;
  border-radius: 8px;
  background: #fffaf0;
  overflow: hidden;
}

.result-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e7dcc5;
}

.result-heading .eyebrow {
  margin: 0 0 6px;
}

.result-heading h2 {
  margin: 0;
}

.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal);
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.secondary-button:hover {
  background: #eef8f1;
}

.care-ideas-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.care-ideas-body section {
  border: 1px solid #d7e4dc;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.care-ideas-body h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.care-ideas-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.care-ideas-body li {
  color: #31413c;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .intro-panel {
    position: static;
    padding-top: 0;
  }

  h1 {
    max-width: 760px;
  }

  .intro-copy {
    max-width: 680px;
  }

  .hero-image-card {
    margin-top: 26px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 16px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 8px;
  }

  .hero-image-card {
    margin-top: 22px;
  }

  .two-col,
  .segmented,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
  }

  .result-heading {
    display: grid;
  }

  .care-ideas-body {
    grid-template-columns: 1fr;
  }

  .submit-button {
    width: 100%;
  }

  .secondary-button {
    width: 100%;
  }
}
