:root {
  --bg-base: #faf8f4;
  --bg-raised: #f2ede3;
  --bg-surface: #e8e0d0;
  --bg-deep: #fffaeb;
  --text-1: #1a1420;
  --text-2: #4a3d50;
  --text-3: #7d7284;
  --crimson: #d91656;
  --orange: #eb5b00;
  --purple: #3f3244;
  --line: rgba(63, 50, 68, 0.13);
  --line-strong: rgba(63, 50, 68, 0.24);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(42, 32, 48, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 22, 86, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(235, 91, 0, 0.10), transparent 34rem),
    var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 235, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(242,237,227,0.88));
  border: 1px solid var(--line);
}

.brand img {
  display: block;
  max-width: 168px;
  width: 100%;
  height: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--crimson);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--orange));
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
  color: var(--text-1);
}

.masthead-copy p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
}

.form-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.form-note > div,
.progress-wrap,
.form-section,
.submit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 48px rgba(42, 32, 48, 0.06);
}

.form-note > div {
  padding: 22px;
}

.form-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-note p {
  margin-bottom: 0;
  color: var(--text-2);
}

.progress-wrap {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 16px 18px;
  margin: 0 0 24px;
  backdrop-filter: blur(16px);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(63, 50, 68, 0.11);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--crimson), var(--orange));
  transition: width 260ms ease;
}

.questionnaire {
  display: grid;
  gap: 24px;
}

.form-section {
  padding: clamp(22px, 4vw, 42px);
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--crimson), var(--orange));
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-heading h2,
.submit-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--purple);
}

.section-heading p,
.submit-panel p {
  margin-bottom: 0;
  color: var(--text-2);
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.field:last-child {
  margin-bottom: 0;
}

.field > span,
.field legend {
  color: var(--text-1);
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.field em {
  color: var(--crimson);
  font-style: normal;
}

.field small {
  color: var(--text-3);
  font-size: 0.85rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-1);
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(217, 22, 86, 0.65);
  box-shadow: 0 0 0 4px rgba(217, 22, 86, 0.10);
  background: #fff;
}

.fieldset {
  padding: 0;
  border: 0;
}

.fieldset legend {
  display: block;
  margin-bottom: 10px;
}

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

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

.option-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 235, 0.54);
  color: var(--text-2);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.option-grid label:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 22, 86, 0.30);
  background: rgba(255, 255, 255, 0.82);
}

input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--crimson);
  flex: 0 0 auto;
}

.highlight-field,
.private-field {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 22, 86, 0.18);
  background: linear-gradient(135deg, rgba(217, 22, 86, 0.065), rgba(235, 91, 0, 0.055));
}

.private-field {
  border-color: rgba(63, 50, 68, 0.16);
  background: rgba(242, 237, 227, 0.44);
}

.submit-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(63, 50, 68, 0.96), rgba(42, 32, 48, 0.98)),
    var(--purple);
  color: #fff;
}

.submit-panel h2,
.submit-panel p {
  color: #fff;
}

.submit-panel p {
  opacity: 0.78;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

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

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--crimson), var(--orange));
  box-shadow: 0 16px 34px rgba(217, 22, 86, 0.25);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.status-message {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.status-message.success {
  color: #fff1b8;
}

.status-message.error {
  color: #ffd2d2;
}

.footer {
  margin-top: 28px;
  padding: 24px 4px 0;
  color: var(--text-3);
  text-align: center;
}

.footer p {
  margin-bottom: 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .brand {
    justify-content: flex-start;
    min-height: auto;
    padding: 16px;
  }

  .brand img {
    max-width: 130px;
  }

  .form-note,
  .option-grid.two,
  .option-grid.three,
  .submit-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .progress-wrap {
    top: 8px;
  }

  .button-row {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.4rem;
  }

  .form-section,
  .submit-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .form-note > div,
  .progress-wrap {
    border-radius: 18px;
  }

  .option-grid label {
    min-height: auto;
  }
}
