:root {
  --gold: #dda33f;
  --gold-dark: #bd8128;
  --gold-soft: #f7eddc;
  --charcoal: #343434;
  --ink: #4a4a4a;
  --muted: #858585;
  --canvas: #f3f1ed;
  --paper: #ffffff;
  --line: #e3ded5;
  --danger: #a43d34;
  --shadow: 0 18px 50px rgba(50, 45, 37, 0.11);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(221, 163, 63, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(221, 163, 63, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 36px 36px;
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 4px;
  background: var(--gold);
  content: "";
}

button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100% - 30px, 840px);
  margin: 0 auto;
  padding: 34px 0 28px;
}

.brand-bar {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--gold);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(50, 45, 37, 0.07);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 48px 48px;
  text-align: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.97), rgba(252, 248, 240, 0.94)),
    var(--paper);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(221, 163, 63, 0.18);
  border-radius: 50%;
  content: "";
}

.hero::before { width: 270px; height: 270px; top: -190px; left: -85px; }
.hero::after { width: 340px; height: 340px; right: -235px; bottom: -255px; }

.eyebrow,
.question-number {
  margin: 0 0 11px;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2 { font-family: "Playfair Display", Georgia, serif; color: var(--charcoal); }

h1 {
  max-width: 650px;
  margin: 0 auto;
  font-size: clamp(2.15rem, 7vw, 3.55rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 580px;
  margin: 19px auto 0;
  color: #686868;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-copy strong { color: var(--gold-dark); }

.hero-meta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-meta span { padding: 0 15px; }
.hero-meta span + span { border-left: 1px solid var(--line); }

.survey-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.progress-wrap { padding: 25px 34px 0; }

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

.progress-track { height: 4px; overflow: hidden; background: #eeeae4; }

#progress-bar {
  width: 11%;
  height: 100%;
  background: var(--gold);
  transition: width 260ms ease;
}

form { padding: 34px; }
.step { display: none; animation: fade-slide 220ms ease both; }
.step.is-active { display: block; }

@keyframes fade-slide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step h2,
.success-screen h2 {
  margin: 0 0 24px;
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  font-weight: 500;
  line-height: 1.25;
}

.hint { margin: -11px 0 22px; color: var(--muted); line-height: 1.55; }
.choices { display: grid; gap: 10px; }
.choices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.choice span {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 15px 12px 49px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.choice span::before {
  position: absolute;
  left: 17px;
  width: 17px;
  height: 17px;
  border: 1.5px solid #b9b3a9;
  border-radius: 50%;
  content: "";
}

.choice input[type="checkbox"] + span::before { border-radius: 2px; }
.choice:hover span { border-color: #c9ad7b; }
.choice input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--charcoal); }
.choice input:checked + span::before { border-color: var(--gold-dark); background: var(--gold); box-shadow: inset 0 0 0 4px var(--gold-soft); }
.choice input[type="checkbox"]:checked + span::before { box-shadow: inset 0 0 0 3px var(--gold-soft); }
.choice input:focus-visible + span { outline: 3px solid rgba(221, 163, 63, 0.28); outline-offset: 2px; }

.other-input,
input[type="email"],
textarea {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--paper);
  color: var(--charcoal);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.other-input:focus,
input[type="email"]:focus,
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(221, 163, 63, 0.14); }

textarea { min-height: 150px; margin-top: 0; resize: vertical; line-height: 1.55; }
.field-label { display: block; margin-bottom: -4px; color: var(--charcoal); font-size: 0.84rem; font-weight: 700; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

.gift-icon { margin-bottom: 18px; font-size: 2.25rem; line-height: 1; }

.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.rating label { cursor: pointer; }
.rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.rating span {
  display: grid;
  min-height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.rating b { font-family: "Playfair Display", Georgia, serif; font-size: 1.18rem; font-weight: 600; }
.rating small { font-size: 0.9rem; line-height: 1; }
.rating label:hover span { border-color: #c9ad7b; }
.rating input:checked + span { border-color: var(--gold); background: var(--gold); color: #fff; }
.rating input:focus-visible + span { outline: 3px solid rgba(221, 163, 63, 0.28); outline-offset: 2px; }
.rating-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 0.75rem; }

.form-error {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--danger);
  background: #fff3f1;
  color: var(--danger);
  font-size: 0.88rem;
}

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }

.button {
  min-height: 48px;
  padding: 12px 23px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.7; }
.button-primary { margin-left: auto; background: var(--charcoal); color: #fff; }
.button-primary:hover { background: #222; }
.button-secondary { border: 1px solid var(--line); background: #f4f2ee; color: var(--charcoal); }

.spinner {
  display: none;
  width: 17px;
  height: 17px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  vertical-align: middle;
}

.is-submitting .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-screen { padding: 58px 40px 62px; text-align: center; animation: fade-slide 280ms ease both; }
.success-screen p:not(.eyebrow) { max-width: 520px; margin: 0 auto; color: var(--muted); line-height: 1.65; }

.success-mark {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.success-mark::after {
  position: absolute;
  width: 13px;
  height: 25px;
  top: 16px;
  left: 25px;
  border: solid var(--gold-dark);
  border-width: 0 3px 3px 0;
  content: "";
  transform: rotate(45deg);
}

.success-note { margin-top: 25px; padding: 15px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); color: var(--charcoal); font-weight: 700; }
.honeypot { position: absolute !important; left: -9999px !important; }

footer { padding: 23px 0 0; color: #8b8882; font-size: 0.77rem; text-align: center; }

@media (max-width: 600px) {
  .page-shell { width: min(100% - 18px, 840px); padding-top: 18px; }
  .brand-bar { min-height: 72px; }
  .brand-logo { width: 166px; height: auto; }
  .hero { padding: 34px 20px 38px; }
  .hero-copy { font-size: 0.96rem; }
  .hero-meta span { padding: 0 10px; }
  .progress-wrap { padding: 21px 20px 0; }
  form { padding: 28px 20px 22px; }
  .choices-grid { grid-template-columns: 1fr; }
  .choice span { min-height: 49px; }
  .rating { gap: 6px; }
  .rating span { min-height: 60px; }
  .form-actions { position: sticky; bottom: 8px; z-index: 2; padding-top: 12px; background: linear-gradient(transparent, var(--paper) 28%); }
  .button { min-height: 50px; }
  .success-screen { padding: 48px 22px 52px; }
}

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