:root {
  --cream: #f7f2ea;
  --paper: #fffdf9;
  --navy: #1b2a41;
  --navy-2: #2e4263;
  --gold: #b08d57;
  --line: #e4dccf;
  --muted: #6b7280;
  --err: #a4262c;
  --ok: #2f6b4f;
  --r: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font: 16px/1.55 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--navy-2); }
h1, h2, legend, .brand { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.1; margin: .2em 0 .35em; }

.bar { background: var(--navy); color: var(--cream); padding: 14px 20px; }
.brand { color: var(--cream); text-decoration: none; font-size: 1.45rem; display: flex; flex-wrap: wrap; gap: .2em .6em; align-items: baseline; }
.brand span { font-family: "DM Sans", sans-serif; font-weight: 400; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

.wrap { max-width: 760px; margin: 0 auto; padding: 28px 18px 40px; }
.intro p { margin: 0 0 1em; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; margin: 0 !important; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 22px 22px; box-shadow: 0 1px 2px rgba(27,42,65,.04), 0 8px 24px rgba(27,42,65,.05); }
.card.narrow { max-width: 560px; margin: 0 auto; padding-top: 18px; }

.step { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 6px; min-width: 0; }
.step:first-child { border-top: 0; }
.step[disabled] { opacity: .45; }
legend { font-size: 1.45rem; padding: 0; display: flex; align-items: center; gap: .5em; margin-bottom: 10px; }
.num { font: 600 .85rem "DM Sans", sans-serif; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--cream); display: inline-grid; place-items: center; }

.types { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.type-group { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.type-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.type-head span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.type-opts { display: flex; gap: 8px; flex-wrap: wrap; }

.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: .15s; }
.pill input:checked + span { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.hint, .muted { color: var(--muted); font-size: .9rem; }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.day { flex: 0 0 auto; scroll-snap-align: start; min-width: 78px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; cursor: pointer; display: grid; text-align: center; }
.day .dow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day .dt { font-weight: 600; }
.day .n { font-size: .72rem; color: var(--gold); }
.day[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.day[aria-selected="true"] .dow, .day[aria-selected="true"] .n { color: #d9cdb8; }
.day-long { width: 100%; margin: 4px 0 8px; font-weight: 500; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time { min-width: 76px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font: 500 1rem "DM Sans", sans-serif; cursor: pointer; }
.time:hover { border-color: var(--navy-2); }
.time.sel { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.grid { display: grid; gap: 12px 16px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.grid .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
label { display: grid; gap: 4px; font-size: .92rem; font-weight: 500; }
label.block { margin: 14px 0; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  font: inherit; color: var(--navy); width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.radio-row .lbl { font-size: .92rem; font-weight: 500; flex-basis: 100%; }
.radio-row .msg { flex-basis: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 16px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.invalid input, .invalid select { border-color: var(--err); }
.msg { color: var(--err); font-size: .82rem; font-weight: 400; }
.error { background: #fbeaea; color: var(--err); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.ok { color: var(--ok); }

.summary { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 6px; padding: 10px 14px; margin: 14px 0; }
.btn { display: inline-block; text-decoration: none; text-align: center; background: var(--navy); color: var(--cream); border: 0; border-radius: 999px; padding: 13px 26px; font: 600 1rem "DM Sans", sans-serif; cursor: pointer; width: 100%; max-width: 320px; }
.btn:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.danger { background: var(--err); }

.foot { max-width: 760px; margin: 0 auto; padding: 0 18px 40px; color: var(--muted); font-size: .85rem; }
.foot p { margin: .3em 0; }
[hidden] { display: none !important; }
.check { flex-wrap: wrap; }
.check > span:not(.msg) { flex: 1 1 0; }
.check .msg { flex-basis: 100%; margin-left: 28px; }
