:root {
  --ink: #2c3e4a;
  --denim: #3a4f63;
  --muted: #7a95a3;
  --muted-light: #9fb3c4;
  --line: #e2e8f0;
  --terra: #c97a55;
  --terra-dark: #a8603e;
  --terra-tint: #fdf1ec;
  --sage: #8fab96;
  --green: #4a8c6f;
  --red: #c74444;
  --bg: #f7f8fa;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "DM Sans", system-ui, -apple-system, sans-serif;
}

.shell { max-width: 680px; margin: 0 auto; padding: 40px 16px 64px; }

.hero { text-align: center; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--terra); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; color: var(--ink); }
h1 { margin: 0 0 10px; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; }
.lede { margin: 0 auto; max-width: 520px; color: var(--muted); }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; }
.steps li { flex: 1; min-width: 0; }
.steps .bar { height: 5px; border-radius: 99px; background: var(--line); transition: background .2s; }
.steps li.is-done .bar, .steps li.is-current .bar { background: var(--terra); }
.steps .lbl { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li.is-current .lbl { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .steps .lbl { display: none; } .steps li.is-current .lbl { display: block; overflow: visible; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(44, 62, 74, .04); }
@media (max-width: 520px) { .card { padding: 20px 16px; } }

.step-title { margin: 0 0 4px; font-size: 24px; }
.step-intro { margin: 0 0 22px; color: var(--muted); }
.optional-pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: var(--terra-tint); color: var(--terra-dark); font: 600 12px/1.6 "DM Sans", sans-serif; vertical-align: middle; }

.callout { margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: #f0f4f8; color: var(--denim); font-size: 14px; }
.callout strong { color: var(--ink); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--terra); }
.field .hint { margin: -2px 0 6px; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(143, 171, 150, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field .msg { margin-top: 4px; font-size: 13px; color: var(--red); }

.section-label { margin: 26px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 18px; font-size: 15px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--terra); flex: none; }

details.more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more summary { cursor: pointer; color: var(--denim); font-weight: 500; }
details.more[open] summary { margin-bottom: 14px; }

.drop { display: block; border: 2px dashed var(--line); border-radius: 14px; padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--terra); background: var(--terra-tint); }
.drop strong { color: var(--terra-dark); }
.drop small { display: block; margin-top: 4px; color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.files .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.files .size { color: var(--muted); font-size: 12px; }
.files select { grid-column: 1 / 2; padding: 8px 10px; font-size: 14px; }
.files .remove { border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px; }
.files .remove:hover { color: var(--red); }
.files progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--terra); }

.qa { display: grid; gap: 18px; }
.qa .field label { font-weight: 500; }

.review { display: grid; gap: 14px; }
.review section { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review h3 { margin: 0 0 8px; font-size: 17px; display: flex; justify-content: space-between; align-items: baseline; }
.review h3 button { border: 0; background: none; color: var(--terra-dark); font: 500 14px "DM Sans", sans-serif; cursor: pointer; padding: 0; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 35%) 1fr; gap: 4px 12px; font-size: 14px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.review .none { color: var(--muted-light); font-size: 14px; margin: 0; }

.error { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecec; color: var(--red); font-size: 14px; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.btn { border: 0; border-radius: 10px; padding: 13px 22px; font: 600 16px "DM Sans", sans-serif; cursor: pointer; transition: background .15s, opacity .15s; }
.btn.primary { background: var(--terra); color: #fff; margin-left: auto; }
.btn.primary:hover { background: var(--terra-dark); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.link-btn { border: 0; background: none; padding: 0; color: var(--terra-dark); font: inherit; text-decoration: underline; cursor: pointer; }

.done { text-align: center; padding: 44px 28px; }
.done .check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #e8f2ec; color: var(--green); font-size: 28px; line-height: 56px; }
.done h2 { margin: 0 0 8px; font-size: 26px; }
.done p { margin: 0; color: var(--muted); }

.footer { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted-light); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
