:root {
  --bg: #fff8f3;
  --ink: #2c2026;
  --muted: #6f6268;
  --plum: #6f214d;
  --rose: #e97975;
  --coral: #f2a178;
  --mint: #d9efe6;
  --line: #ecd8cd;
  --field: #ffffff;
  --focus: #176b61;
  --shadow: 0 22px 70px rgba(74, 38, 50, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

.page-shell {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  overflow-x: hidden;
  padding: clamp(22px, 4vw, 56px);
  width: 100%;
}

.intro {
  align-content: start;
  display: grid;
  gap: 28px;
  padding-top: clamp(8px, 3vw, 46px);
}

.brand-lockup {
  background: #fffefd;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  min-width: 0;
  min-height: 250px;
  padding: clamp(18px, 3vw, 30px);
  place-items: center;
}

.brand-logo {
  display: block;
  max-width: min(100%, 360px);
  object-fit: contain;
  width: 100%;
}

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

.eyebrow {
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: 4.25rem;
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
}

.intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 20px 0 0;
}

.form-wrap {
  align-self: start;
  background:
    linear-gradient(135deg, rgba(217, 239, 230, 0.75), transparent 42%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  width: 100%;
}

.questionnaire {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact {
  align-items: end;
}

label,
fieldset {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

label > span,
legend {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.25;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: var(--field);
  border: 1px solid #d9c6bf;
  border-radius: 6px;
  color: var(--ink);
  min-width: 0;
  min-height: 46px;
  outline: 0;
  padding: 12px 13px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 128px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9a8d91;
}

input:focus,
select:focus,
textarea:focus,
.choice:has(input:focus-visible) {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(23, 107, 97, 0.16);
}

.measure-field {
  grid-column: 1 / -1;
}

.inline-number-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

.choice {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #dec9c0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
}

.choice input {
  accent-color: var(--plum);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.choice span {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.25;
}

.other-field {
  margin-top: 14px;
}

.radio-fieldset {
  min-height: 75px;
}

.radio-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.consent {
  align-items: flex-start;
  background: var(--mint);
  border-color: #b8ded1;
}

.submit-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
}

button {
  background: var(--plum);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 13px 22px;
}

button:focus {
  box-shadow: 0 0 0 3px rgba(23, 107, 97, 0.22);
  outline: 0;
}

button:hover {
  background: #572040;
}

button:disabled {
  background: #9d8492;
  cursor: wait;
}

.status {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.4;
  margin: 0;
  min-height: 22px;
}

.status[data-state="success"] {
  color: #176b35;
  font-weight: 750;
}

.status[data-state="error"] {
  color: #9a1f32;
  font-weight: 750;
}

.screen-reader-field {
  height: 1px;
  left: -9999px;
  opacity: 0;
  position: fixed;
  top: -9999px;
  width: 1px;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-lockup {
    min-height: 180px;
  }

  .brand-logo {
    max-width: 310px;
  }

  h1 {
    font-size: 3.35rem;
  }
}

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

  .form-grid,
  .choice-grid,
  .radio-row,
  .inline-number-row,
  .submit-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .intro-copy p:not(.eyebrow) {
    font-size: 1rem;
    max-width: 32ch;
  }
}
