@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #24342f;
  --muted: #66736f;
  --cream: #f6f3ed;
  --paper: #fffdf9;
  --sage: #708c81;
  --sage-dark: #425f55;
  --sage-pale: #dce7e1;
  --gold: #bd9360;
  --line: #d9dfdb;
  --error: #a23d3d;
  --shadow: 0 20px 60px rgba(35, 52, 47, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  color: white;
  background:
    linear-gradient(115deg, rgba(31, 55, 48, .98), rgba(74, 105, 94, .9)),
    radial-gradient(circle at 75% 25%, #9bb2a8, transparent 45%);
}
.hero::after {
  position: absolute;
  right: -8%;
  bottom: -38%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  content: "";
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero__glow--one { width: 300px; height: 300px; right: 10%; top: -130px; background: rgba(207, 180, 130, .13); }
.hero__glow--two { width: 200px; height: 200px; right: 28%; bottom: -120px; background: rgba(255,255,255,.05); }
.hero__inner { position: relative; z-index: 1; padding: 34px 0 86px; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 600; letter-spacing: .02em; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-size: 15px;
}
.hero__copy { max-width: 790px; padding-top: 84px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.025em; }
.hero__intro { max-width: 670px; margin: 26px 0 24px; color: rgba(255,255,255,.82); font-size: 18px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 28px; color: rgba(255,255,255,.72); font-size: 13px; }
.hero__meta span::before { margin-right: 8px; color: #d7b881; content: "•"; }

.form-layout { position: relative; display: grid; grid-template-columns: 245px 1fr; gap: 38px; align-items: start; margin-top: -48px; padding-bottom: 100px; }
.progress-panel {
  position: sticky;
  top: 24px;
  padding: 27px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px;
  background: rgba(255,253,249,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.progress-panel__title { margin: 0 0 18px; font-size: 13px; font-weight: 700; }
.progress-track { height: 6px; overflow: hidden; border-radius: 9px; background: var(--sage-pale); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.progress-value { margin: 9px 0 22px; color: var(--muted); font-size: 12px; }
.progress-value strong { color: var(--ink); }
.section-nav { display: grid; gap: 4px; }
.section-nav a { padding: 8px 0; color: var(--muted); font-size: 12px; text-decoration: none; transition: color .2s ease; }
.section-nav a:hover { color: var(--sage-dark); }
.questionnaire { display: grid; gap: 24px; min-width: 0; }
.form-card {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(112,140,129,.18);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.form-card--final { border-top: 4px solid var(--gold); }
.section-heading { display: flex; align-items: center; gap: 19px; margin-bottom: 38px; }
.section-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--sage-dark);
  background: var(--sage-pale);
  font-weight: 700;
}
.section-heading .eyebrow { margin-bottom: 2px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); }
.field-grid { display: grid; gap: 22px; }
.field-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; border: 0; }
.field:last-child { margin-bottom: 0; }
.field > span, .field legend { color: var(--ink); font-size: 14px; font-weight: 600; }
.field b, .consent b, .required-note b { color: var(--gold); }
.field small { color: var(--muted); font-size: 12px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"] { height: 52px; padding: 0 16px; }
textarea { min-height: 110px; padding: 15px 16px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(112,140,129,.13); }
::placeholder { color: #a1aaa7; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input, .day input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  transition: all .2s ease;
}
.choice input:checked + span { border-color: var(--sage); color: white; background: var(--sage-dark); }
.choice input:focus-visible + span, .day input:focus-visible + span { outline: 3px solid rgba(112,140,129,.3); outline-offset: 2px; }
.conditional { display: none; margin: 2px 0 28px; padding: 24px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: #faf7f1; }
.conditional.is-visible { display: block; animation: reveal .25s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } }
.days-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.day { position: relative; cursor: pointer; }
.day span { display: block; padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: white; font-size: 12px; text-align: center; }
.day input:checked + span { border-color: var(--sage); color: var(--sage-dark); background: var(--sage-pale); font-weight: 700; }
.checkbox-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.checkbox-list label, .consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; cursor: pointer; }
.checkbox-list input, .consent input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--sage-dark); }
.notice { margin-bottom: 26px; padding: 16px 18px; border-radius: 12px; color: var(--sage-dark); background: var(--sage-pale); font-size: 13px; }
.consent { margin-top: 24px; }
.required-note, .privacy-note { color: var(--muted); font-size: 11px; }
.submit-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  padding: 18px 22px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--sage-dark);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.submit-button:hover { transform: translateY(-1px); background: #344c44; }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-result { min-height: 20px; margin: 12px 0 0; color: var(--sage-dark); font-size: 12px; text-align: center; }
.form-result--error { padding: 11px 14px; border-radius: 10px; color: #8a3f35; background: #fff0ed; }
.privacy-note { text-align: center; }
.honeypot { position: absolute; left: -9999px; }
.success-card { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; padding: 72px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.success-card__icon { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 22px; border-radius: 50%; color: white; background: var(--sage-dark); font-size: 28px; }

@media (max-width: 880px) {
  .form-layout { grid-template-columns: 1fr; }
  .progress-panel { position: relative; top: 0; padding: 20px; }
  .section-nav { display: none; }
  .field-grid--two, .checkbox-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1160px); }
  .hero { min-height: 500px; }
  .hero__inner { padding-top: 22px; }
  .hero__copy { padding-top: 66px; }
  .hero__intro { font-size: 16px; }
  .form-layout { margin-top: -34px; gap: 16px; }
  .form-card { padding: 26px 20px; border-radius: 18px; }
  .section-heading { align-items: flex-start; gap: 13px; margin-bottom: 30px; }
  .section-number { width: 40px; height: 40px; }
  .choice-row--stack-mobile { display: grid; }
  .choice-row--stack-mobile .choice span { text-align: center; }
  .days-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .conditional { padding: 18px 15px; }
  .success-card { padding: 48px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
