@font-face {
  font-family: "Montserrat";
  src: url("/assets/montserrat.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --coral: #f47a63;
  --coral-dark: #dc634e;
  --coral-soft: #fff0ec;
  --ink: #2e211e;
  --muted: #76635e;
  --line: #f0ded9;
  --paper: #ffffff;
  --background: #fff8f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button,
label,
input[type="radio"],
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid rgba(244, 122, 99, 0.16);
}

.header-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand-logo {
  display: block;
  width: 310px;
  height: 102px;
  object-fit: contain;
}

.header-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-inner p span {
  margin-left: 8px;
  color: var(--coral);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  display: grid;
  place-items: center;
  padding: 76px 24px 112px;
  color: white;
  background: var(--coral);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  text-align: center;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker {
  color: white;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(1.7rem, 5.3vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 strong,
.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero h1 strong {
  font-weight: 800;
}

.hero h1 span {
  margin-top: 0.08em;
  font-size: 0.84em;
  font-weight: 400;
}

.hero-copy {
  max-width: 700px;
  margin: 30px auto 0;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.survey-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  font-size: 0.84rem;
  font-weight: 700;
}

.progress-shell {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 40px));
  margin: -42px auto 30px;
  padding: 21px 28px 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(83, 43, 35, 0.12);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-copy strong {
  color: var(--coral);
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coral-soft);
}

.progress-track span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: var(--coral);
  transition: width 350ms ease;
}

.survey-form {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 90px;
}

.question-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  margin-bottom: 22px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 9px 32px rgba(83, 43, 35, 0.045);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.question-card:focus-within {
  border-color: rgba(244, 122, 99, 0.58);
  box-shadow: 0 13px 44px rgba(83, 43, 35, 0.08);
  transform: translateY(-1px);
}

.question-number {
  width: 58px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.question-content fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question-content legend,
.question-content > label,
.question-content fieldset > legend {
  display: block;
  width: 100%;
  padding: 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 800;
  line-height: 1.35;
}

.required-mark {
  margin-left: 5px;
  color: var(--coral);
}

.optional-mark {
  display: inline-flex;
  margin-left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  vertical-align: 2px;
  color: var(--muted);
  background: #f7f2f0;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.question-help {
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.benefit-help {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.benefit-help strong {
  color: var(--coral);
  font-size: 0.78rem;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.rating-option {
  position: relative;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--muted);
  background: white;
  cursor: pointer;
  transition: 160ms ease;
}

.rating-option:hover,
.rating-option.selected {
  border-color: var(--coral);
  color: var(--coral-dark);
  background: var(--coral-soft);
  transform: translateY(-2px);
}

.rating-option input,
.check-option input,
.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-option:focus-within,
.check-option:focus-within,
.pill-option:focus-within {
  outline: 3px solid rgba(244, 122, 99, 0.24);
  outline-offset: 2px;
}

.rating-number {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
}

.rating-option > span:last-child {
  min-height: 16px;
  font-size: 0.65rem;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  outline: none;
}

.check-option {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  transition: 160ms ease;
}

.check-option:hover:not(:has(input:disabled)),
.check-option.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.check-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.44;
}

.custom-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 1px solid #d7c2bc;
  border-radius: 7px;
  background: white;
}

.custom-check svg {
  width: 14px;
  fill: none;
  stroke: white;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.check-option.selected .custom-check {
  border-color: var(--coral);
  background: var(--coral);
}

.check-option.selected .custom-check svg {
  opacity: 1;
}

.other-field,
.reason-field {
  display: block;
  margin-top: 22px;
}

.other-field > span,
.reason-field > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 700;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid #dfcbc5;
  border-radius: 15px;
  color: var(--ink);
  background: #fffcfb;
  font-size: 0.93rem;
  line-height: 1.65;
  transition: 160ms ease;
}

input[type="text"] {
  min-height: 52px;
  padding: 12px 15px;
}

textarea {
  min-height: 130px;
  margin-top: 20px;
  padding: 16px 17px;
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--coral);
  outline: 3px solid rgba(244, 122, 99, 0.17);
  background: white;
}

textarea::placeholder,
input::placeholder {
  color: #ad9994;
}

.selection-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.choice-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.pill-option {
  position: relative;
  min-width: 112px;
  padding: 13px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition: 160ms ease;
}

.pill-option:hover,
.pill-option.selected {
  border-color: var(--coral);
  color: white;
  background: var(--coral);
}

.submit-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin-top: 34px;
  padding: 48px;
  border-radius: 24px;
  color: var(--ink);
  background: var(--coral-soft);
}

.submit-card > * {
  position: relative;
  z-index: 1;
}

.submit-card .eyebrow {
  color: var(--coral);
}

.submit-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
}

.submit-card p:not(.eyebrow):not(.form-error) {
  max-width: 590px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.primary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(220, 99, 78, 0.22);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: 180ms ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(244, 122, 99, 0.32);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-card .primary-button {
  min-height: 62px;
  padding: 16px 32px;
  font-size: 0.94rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.form-error {
  grid-column: 1 / -1;
  margin: -10px 0 0;
  color: #a43e2c;
  font-size: 0.82rem;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.is-hidden {
  display: none !important;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 30px 24px;
  color: white;
  background: var(--coral);
  text-align: center;
  font-size: 0.77rem;
  font-weight: 600;
}

footer p {
  margin: 0;
}

.thank-you-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: var(--coral);
}

.thank-you-card {
  position: relative;
  overflow: hidden;
  width: min(650px, 100%);
  padding: 64px;
  border-radius: 30px;
  background: white;
  box-shadow: 0 28px 80px rgba(83, 43, 35, 0.2);
  text-align: center;
}

.thank-you-card h1 {
  margin: 0 0 34px;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.thank-you-card h1 strong,
.thank-you-card h1 span {
  display: block;
}

.thank-you-card h1 strong {
  font-weight: 800;
}

.thank-you-card h1 span {
  margin-top: 0.08em;
  font-weight: 400;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 32px, 1120px);
    min-height: 98px;
  }

  .brand-logo {
    width: 236px;
    height: 80px;
  }

  .hero {
    min-height: 470px;
    padding: 64px 20px 98px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.65rem);
  }

  .hero-copy {
    line-height: 1.62;
  }

  .survey-meta {
    flex-direction: column;
    gap: 4px;
  }

  .survey-meta span[aria-hidden] {
    display: none;
  }

  .progress-shell,
  .survey-form {
    width: calc(100% - 24px);
  }

  .progress-shell {
    padding: 18px 20px 20px;
  }

  .survey-form {
    padding-top: 18px;
  }

  .question-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 20px;
    border-radius: 20px;
  }

  .question-number {
    width: 50px;
    height: 36px;
  }

  .rating-grid {
    gap: 6px;
  }

  .rating-option {
    min-height: 88px;
    border-radius: 13px;
  }

  .rating-option > span:last-child {
    font-size: 0;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .pill-option {
    min-width: 0;
    padding: 12px 10px;
  }

  .submit-card {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .submit-card .primary-button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .thank-you-card {
    padding: 50px 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
