:root {
  --green: #004123; --green-dark: #00351c;
  --gold: #BC8E5D;
  --gold-line: rgba(188,142,93,.30);
  --gold-line-soft: rgba(188,142,93,.18);
  --gold-soft: rgba(188,142,93,.13);
  --paper: #f7f4ef; --linen: #e8e4de; --ink: #0d0d0d;
  --text: #0d0d0d; --muted: #0d0d0d; --muted-light: #0d0d0d;
  --placeholder: #888; --error: #e74c3c;
  --font: 'Montserrat', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font); color: var(--text); line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 82% -8%, #0a4d2c 0%, transparent 55%),
    radial-gradient(900px 560px at -8% 108%, #00341c 0%, transparent 52%),
    var(--green);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  display: flex; justify-content: center; padding: 46px 18px 60px;
}
.shell { width: 100%; max-width: 600px; }

/* ---------- Masthead ---------- */
.masthead { margin-bottom: 26px; padding: 0 4px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.masthead h1 { font-family: var(--serif); color: #fff; font-weight: 600; font-size: clamp(34px,7vw,52px); line-height: 1.0; letter-spacing: -.01em; }
.masthead h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.masthead .meta { margin-top: 16px; color: #fff; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.masthead .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

/* ---------- Card ---------- */
.card { background: var(--linen); border: 1px solid var(--gold-line-soft); border-radius: 4px; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 2px; background: linear-gradient(to right, transparent, var(--gold), transparent); z-index: 2; }

/* ---------- Stepper ---------- */
.stepper { display: flex; padding: 26px 38px 4px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; }
.step .idx { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--ink); background: transparent; transition: .28s; z-index: 2; }
.step .lbl { font-size: 9px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); transition: .28s; }
.step.active .idx { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.step.active .lbl { color: var(--ink); }
.step.done .idx { border-color: var(--gold); color: var(--gold); }
.step.done .lbl { color: var(--ink); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 1px; background: var(--gold-line); }
.step.done:not(:last-child)::after { background: var(--gold); }
.progress { height: 2px; background: var(--gold-line-soft); margin-top: 18px; }
.progress > i { display: block; height: 100%; width: 33%; background: var(--gold); transition: width .42s cubic-bezier(.2,.8,.2,1); }

/* ---------- Body ---------- */
.body { padding: 34px 40px 10px; }
@media (max-width: 560px) {
  .body { padding: 30px 24px 8px; }
  .stepper { padding: 24px 24px 4px; }
  .step .lbl { font-size: 8px; letter-spacing: .18em; }
}

.panel { display: none; animation: fade .42s ease both; }
.panel.show { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.sec-head { margin-bottom: 26px; }
.sec-head .sl { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -.01em; color: var(--ink); line-height: 1.1; }
.sec-head p { color: var(--ink); font-size: 14px; margin-top: 7px; max-width: 54ch; }

/* ---------- Recap chips ---------- */
.recap { border: 1px solid var(--gold-line-soft); border-radius: 3px; padding: 14px 16px; margin-bottom: 28px; background: rgba(247,244,239,.5); }
.recap .rh { font-size: 9px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.recap .rh svg { width: 13px; height: 13px; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: var(--paper); border: 1px solid var(--gold-line); border-radius: 2px; padding: 5px 11px; font-size: 13px; color: var(--ink); }
.chip b { color: var(--ink); font-weight: 700; margin-right: 6px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Fields ---------- */
.field { margin-bottom: 22px; }
.field > label.q { display: block; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); line-height: 1.55; margin-bottom: 9px; }
.req { color: var(--gold); }
.opt { color: var(--ink); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 11px; margin-left: 8px; }
.help { font-size: 12px; color: var(--ink); margin-bottom: 12px; max-width: 56ch; line-height: 1.55; }
.fromstd { font-size: 11px; font-style: italic; color: var(--gold); margin-top: 8px; }

/* ---------- Carry-over / person tags ---------- */
.co-tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 2px; padding: 3px 8px; margin-right: 8px; vertical-align: middle; }
.lnk { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Inputs ---------- */
input[type=text], input[type=email], textarea, select {
  width: 100%; font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--gold-line); border-radius: 0;
  padding: 8px 0 10px; outline: none; transition: border-color .2s ease;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus, select:focus { border-bottom-color: var(--gold); }
::placeholder { color: var(--placeholder); font-weight: 300; font-style: italic; opacity: 1; }
textarea { resize: vertical; min-height: 46px; line-height: 1.55; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='none' stroke='%230d0d0d' stroke-width='1.3' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
select:invalid { color: var(--placeholder); font-style: italic; }

/* ---------- Radios ---------- */
.opts { display: grid; gap: 3px; }
.opt-row { position: relative; }
.opt-row input { position: absolute; opacity: 0; pointer-events: none; }
.opt-row label { display: flex; align-items: center; gap: 13px; cursor: pointer; padding: 10px 2px; font-size: 14px; color: var(--ink); transition: color .16s; }
.opt-row label::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--gold-line); flex: 0 0 auto; transition: .16s; }
.opt-row label:hover::before { border-color: var(--gold); }
.opt-row input:checked + label { color: var(--ink); }
.opt-row input:checked + label::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 42%, transparent 47%); }
.opt-row input:focus-visible + label::before { box-shadow: 0 0 0 3px var(--gold-soft); }

/* ---------- Reveal / nested ---------- */
.reveal { display: none; margin-top: 12px; animation: fade .3s both; }
.reveal.show { display: block; }
.nested { margin-top: 20px; padding-left: 18px; border-left: 1px solid var(--gold-line); }
.nested .field { margin-bottom: 6px; }
.nested .q { font-size: 9.5px; }

/* ---------- Misc field helpers ---------- */
.counter { font-size: 11px; color: var(--ink); text-align: right; margin-top: 6px; }
.counter.over { color: var(--error); font-weight: 600; }
.err-msg { display: none; color: var(--error); font-size: 11px; margin-top: 6px; font-weight: 400; letter-spacing: .02em; }
.field.invalid .err-msg { display: block; }
.field.invalid input[type=text], .field.invalid input[type=email], .field.invalid textarea, .field.invalid select { border-bottom-color: var(--error); }
.field.invalid .opt-row label::before { border-color: var(--error); }
.note { background: #f0ece4; border-left: 3px solid var(--gold); border-radius: 0 3px 3px 0; padding: 12px 15px; font-size: 12.5px; color: var(--ink); line-height: 1.55; margin-bottom: 12px; }
.note b { color: var(--ink); font-weight: 600; }

/* ---------- Attendee repeater ---------- */
.addbtn { background: transparent; border: 1px dashed var(--gold-line); border-radius: 3px; color: var(--gold); font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 10px 18px; cursor: pointer; transition: .18s; }
.addbtn:hover { border-color: var(--gold); background: var(--gold-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.person-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.person-head .co-tag { margin: 0; }
.person-head .ph-note { font-size: 12px; color: var(--ink); }
.att-card { position: relative; border: 1px solid var(--gold-line); border-radius: 5px; background: rgba(247,244,239,.45); padding: 22px 22px 4px; margin-bottom: 16px; }
.att-card .att-num { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.att-remove { position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; transition: color .15s; }
.att-remove:hover { color: var(--error); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 40px 30px; }
@media (max-width: 560px) { .nav { padding: 12px 24px 26px; } }
.stepcount { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.btn { font-family: var(--font); cursor: pointer; transition: .22s; }
.btn-primary { padding: 15px 40px; background: var(--ink); color: var(--paper); border: none; border-radius: 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.btn-primary:hover { background: #1a1a1a; }
.btn-ghost { background: transparent; border: none; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 6px 2px; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost.hidden { visibility: hidden; }

/* ---------- Confirmation ---------- */
.done-screen { display: none; padding: 60px 40px 64px; text-align: center; animation: fade .5s both; }
.done-screen.show { display: block; }
.done-screen .seal { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.done-screen h2 { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 32px; color: var(--ink); }
.done-screen p { color: var(--ink); font-size: 14px; margin-top: 12px; max-width: 42ch; margin-inline: auto; line-height: 1.6; }

.footnote { text-align: center; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-top: 22px; }

/* ---------- Modals ---------- */
.dr-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; padding: 24px; }
.dr-modal-overlay.show { display: flex; }
.dr-modal-box { background: #fff; border-radius: 16px; padding: 48px 40px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.2); }
.dr-modal-box h2 { margin: 0 0 10px; font-size: 1.4rem; }
.dr-modal-box > p { margin: 0 0 8px; line-height: 1.6; }

.dr-modal-icon,
.dr-modal-seal { width: 56px; height: 56px; border-radius: 50%; background: #1a1a1a; color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* Email gate */
.dr-gate-field { margin: 24px 0 16px; text-align: left; }
.dr-gate-field input[type="email"] { width: 100%; padding: 13px 16px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 1rem; outline: none; transition: border-color .15s; box-sizing: border-box; }
.dr-gate-field input[type="email"]:focus { border-color: #1a1a1a; }
.dr-gate-field input[type="email"].error { border-color: #c0392b; }
.dr-gate-error { font-size: 0.82rem; color: #c0392b; margin-top: 6px; min-height: 18px; line-height: 1.4; }
.dr-gate-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }
.dr-gate-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Already-registered modal */
.dr-modal-roster { margin: 20px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.dr-modal-roster-label { font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.dr-modal-name-pill { display: flex; align-items: center; gap: 10px; background: #f4f4f4; border-radius: 8px; padding: 10px 14px; text-align: left; }
.dr-modal-name-pill .pill-icon { width: 28px; height: 28px; border-radius: 50%; background: #1a1a1a; color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dr-modal-name-pill .pill-name { font-size: 0.92rem; font-weight: 500; }
.dr-modal-sub { font-size: 0.82rem !important; margin-top: 20px !important; }

/* ---------- Register another button ---------- */
#registerAnotherBtn {
  width: 100%; padding: 14px 20px; background: #1a1a1a; color: #fff; border: none;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: background .18s; margin-top: 20px;
}
#registerAnotherBtn:hover { background: #333; }