/* =====================================================================
   MAGNOLIA HILLS DMV — SECTION STYLES
   ---------------------------------------------------------------------
   Scoped to .dmv-* classes and loaded only by the DMV pages, so nothing
   here can affect any existing page. Uses the site's existing design
   tokens (--green, --gold, --cream, --ink …) — no new colours.
   ===================================================================== */

/* ---------- Roleplay notice bar ---------- */
.dmv-notice {
  background: var(--green); color: rgba(245,235,221,.9);
  border-bottom: 1px solid rgba(198,154,75,.35);
}
.dmv-notice { padding-top: var(--header-h); }
.dmv-notice .container { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; }
/* the notice already clears the fixed header, so the hero must not clear it twice */
.dmv-notice ~ .page-hero { padding-top: 0; }
.dmv-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold-pale); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dmv-notice p { margin: 0; font-size: .88rem; line-height: 1.55; }
.dmv-notice strong { color: var(--cream); font-weight: 500; }

/* ---------- Section sub-navigation ---------- */
.dmv-subnav { border-bottom: 1px solid var(--taupe-line); background: var(--cream); position: sticky; top: 70px; z-index: 40; }
.dmv-subnav .container { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.dmv-subnav a {
  flex: 0 0 auto; padding: 16px 16px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-soft); border-bottom: 2px solid transparent; white-space: nowrap; transition: color var(--t), border-color var(--t);
}
.dmv-subnav a:hover { color: var(--gold-deep); }
.dmv-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.dmv-subnav .dmv-subnav-label { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em; color: var(--gold-deep); padding-right: 18px; margin-right: 4px; border-right: 1px solid var(--taupe-line); text-transform: none; font-weight: 500; flex: 0 0 auto; }

/* ---------- Office info strip ---------- */
.dmv-office { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dmv-office-2 { grid-template-columns: 1fr 1fr; margin-bottom: 26px; }
.dmv-office-item { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--taupe-line); border-radius: var(--radius-lg); padding: 20px 20px 18px; background: var(--cream); }
.dmv-office-item .eyebrow { margin-bottom: 8px; }
.dmv-office-item p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.dmv-office-item strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); display: block; }

/* ---------- Service cards ---------- */
.dmv-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dmv-service {
  background: var(--cream); border: 1px solid var(--taupe-line); border-radius: var(--radius-lg);
  padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.dmv-service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.dmv-service h3 { font-size: 1.5rem; line-height: 1.15; }
.dmv-service > p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.dmv-fee-tag { align-self: flex-start; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--midnight); color: var(--gold-pale); }
.dmv-needs { border-top: 1px solid var(--taupe-line); padding-top: 12px; display: grid; gap: 5px; }
.dmv-needs li { position: relative; padding-left: 18px; font-size: .84rem; color: var(--ink-soft); }
.dmv-needs li::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Fee table ---------- */
.dmv-fee-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.dmv-services, .dmv-rules, .dmv-needs, .dmv-photo-rules, .dmv-pipeline, .dmv-office { list-style: none; padding: 0; margin: 0; }
.dmv-fee-table caption { text-align: left; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; padding-bottom: 12px; }
.dmv-fee-table th, .dmv-fee-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--taupe-line); }
.dmv-fee-table th { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--taupe); }
.dmv-fee-table td:last-child, .dmv-fee-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dmv-fee-table tbody td:last-child { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

/* ---------- Rules list ---------- */
.dmv-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.dmv-rules li { position: relative; padding: 8px 0 8px 22px; font-size: .95rem; color: var(--ink-soft); border-bottom: 1px solid var(--taupe-line); }
.dmv-rules li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--gold); }

/* ---------- Status pipeline ---------- */
.dmv-pipeline { display: flex; flex-wrap: wrap; gap: 8px; }
.dmv-pipeline li { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 8px 14px; border: 1px solid var(--taupe-line); border-radius: 999px; color: var(--ink-soft); background: var(--cream); }
.dmv-pipeline li:first-child { background: var(--midnight); color: var(--gold-pale); border-color: var(--midnight); }

/* ---------- Coming soon panel ---------- */
.dmv-soon { border: 1px dashed var(--taupe); border-radius: var(--radius-lg); padding: 26px 24px; background: transparent; display: flex; gap: 20px; align-items: flex-start; }
.dmv-soon-badge { flex: 0 0 auto; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--blush); color: var(--midnight); }
.dmv-soon h3 { font-size: 1.4rem; margin-bottom: 6px; }
.dmv-soon p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Photograph requirement block ---------- */
.dmv-photo-block { border-left: 2px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 22px 24px; margin-bottom: 26px; }
.dmv-photo-block h3 { font-size: 1.3rem; margin-bottom: 8px; }
.dmv-photo-block > p { font-size: .93rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }
.dmv-photo-rules { display: grid; gap: 6px; }
.dmv-photo-rules li { position: relative; padding-left: 24px; font-size: .9rem; color: var(--ink-soft); }
.dmv-photo-rules li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-size: .85rem; }

/* =====================================================================
   MULTISTEP APPLICATION
   ===================================================================== */
.dmv-form-wrap { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

/* Progress rail */
.dmv-progress { position: sticky; top: 140px; }
.dmv-progress-bar { height: 3px; background: var(--taupe-line); border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
.dmv-progress-fill { display: block; height: 100%; background: var(--gold); width: 0; transition: width .45s var(--ease); }
.dmv-progress-count { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); font-weight: 500; margin-bottom: 16px; }
.dmv-steps-list { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.dmv-steps-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .9rem; color: var(--taupe); transition: color var(--t); }
.dmv-steps-list .dmv-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--taupe-line); display: grid; place-items: center; font-size: .72rem; font-weight: 500; flex-shrink: 0; transition: all var(--t); }
.dmv-steps-list li.is-done { color: var(--ink-soft); }
.dmv-steps-list li.is-done .dmv-dot { background: var(--green); border-color: var(--green); color: var(--cream); }
.dmv-steps-list li.is-current { color: var(--ink); font-weight: 500; }
.dmv-steps-list li.is-current .dmv-dot { background: var(--midnight); border-color: var(--midnight); color: var(--gold-pale); }

/* Panel */
.dmv-panel { background: var(--cream); border: 1px solid var(--taupe-line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.dmv-panel[hidden] { display: none; }
.dmv-panel-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--taupe-line); }
.dmv-panel-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.dmv-panel-head p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.dmv-panel-head strong { color: var(--ink); font-weight: 500; }

/* Fields — reuse the site's .field styles, add DMV-only pieces */
.dmv-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.dmv-field-grid .dmv-full { grid-column: 1 / -1; }
.dmv-help { font-size: .82rem; color: var(--taupe); line-height: 1.45; margin-top: -2px; }
.dmv-err { display: block; font-size: .78rem; color: #A8402F; margin-top: 4px; font-weight: 500; }
.dmv-field-invalid input, .dmv-field-invalid select, .dmv-field-invalid textarea { border-color: #A8402F; }

/* Radio group */
.dmv-radios { display: grid; gap: 8px; margin-top: 4px; }
.dmv-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--taupe-line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color var(--t), background var(--t); }
.dmv-radio:hover { border-color: var(--gold); }
.dmv-radio input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.dmv-radio span { font-size: .96rem; }
.dmv-radio:has(input:checked) { border-color: var(--green); background: rgba(38,56,43,.05); }

/* Radio cards (service picker) */
.dmv-cards { display: grid; gap: 10px; }
.dmv-card { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--taupe-line); border-radius: var(--radius-lg); background: #fff; cursor: pointer; transition: border-color var(--t), background var(--t), transform var(--t); }
.dmv-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.dmv-card input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.dmv-card b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.dmv-card small { display: block; font-size: .87rem; color: var(--ink-soft); margin-top: 2px; }
.dmv-card:has(input:checked) { border-color: var(--green); background: rgba(38,56,43,.05); box-shadow: var(--shadow); }

/* Checkbox acknowledgements */
.dmv-check { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--taupe-line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; cursor: pointer; transition: border-color var(--t); }
.dmv-check:hover { border-color: var(--gold); }
.dmv-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.dmv-check span { font-size: .94rem; line-height: 1.55; color: var(--ink-soft); }
.dmv-check:has(input:checked) { border-color: var(--green); }
.dmv-check.dmv-field-invalid { border-color: #A8402F; }

/* Navigation buttons */
.dmv-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--taupe-line); flex-wrap: wrap; }
.dmv-nav-right { display: flex; gap: 10px; align-items: center; }
.dmv-saved { font-size: .76rem; color: var(--taupe); letter-spacing: .06em; }

/* Review */
.dmv-review-group { margin-bottom: 22px; border: 1px solid var(--taupe-line); border-radius: var(--radius-lg); overflow: hidden; }
.dmv-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; background: var(--ivory); border-bottom: 1px solid var(--taupe-line); }
.dmv-review-head h3 { font-size: 1.2rem; }
.dmv-review-edit { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--gold-deep); }
.dmv-review-edit:hover { color: var(--ink); text-decoration: underline; }
.dmv-review-list { display: grid; }
.dmv-review-list > div { display: grid; grid-template-columns: 250px 1fr; gap: 18px; padding: 11px 18px; border-bottom: 1px solid var(--taupe-line); font-size: .93rem; }
.dmv-review-list > div:last-child { border-bottom: 0; }
.dmv-review-list dt { color: var(--taupe); }
.dmv-review-list dd { margin: 0; color: var(--ink); }

/* Confirmation */
.dmv-confirm { text-align: center; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); }
.dmv-confirm-seal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-deep); }
.dmv-confirm-seal svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dmv-confirm h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.dmv-appno { display: inline-block; font-family: var(--sans); font-size: 1.25rem; letter-spacing: .18em; font-weight: 500; padding: 14px 26px; margin: 16px 0 6px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--midnight); color: var(--gold-pale); font-variant-numeric: tabular-nums; }
.dmv-confirm-note { font-size: .84rem; color: var(--taupe); margin-bottom: 26px; }
.dmv-next { list-style: none; padding: 0; text-align: left; max-width: 620px; margin: 0 auto 28px; display: grid; gap: 12px; counter-reset: nx; }
.dmv-next li { counter-increment: nx; position: relative; padding-left: 44px; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }
.dmv-next li::before { content: counter(nx); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-size: .8rem; font-weight: 500; }
.dmv-next strong { color: var(--ink); font-weight: 500; }

/* Submit states */
.dmv-status-msg { padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 18px; }
.dmv-status-msg.is-error { background: rgba(168,64,47,.08); border: 1px solid rgba(168,64,47,.4); color: #8A3527; }
.dmv-status-msg[hidden] { display: none; }

/* FAQ + contact */
.dmv-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
/* grid children default to min-width:auto, which lets long content push a
   column wider than its track — keep every DMV grid child shrinkable */
.dmv-contact-grid > *, .dmv-form-wrap > *, .dmv-office > *, .dmv-services > * { min-width: 0; }

@media (max-width: 1024px) {
  .dmv-office { grid-template-columns: 1fr 1fr; }
  .dmv-office-2 { grid-template-columns: 1fr 1fr; }
  .dmv-services { grid-template-columns: 1fr 1fr; }
  .dmv-form-wrap { grid-template-columns: 1fr; }
  .dmv-progress { position: static; }
  .dmv-steps-list { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .dmv-steps-list li { padding: 4px 0; font-size: .82rem; }
  .dmv-contact-grid { grid-template-columns: 1fr; }
  .dmv-subnav { top: 70px; }
}
@media (max-width: 720px) {
  .dmv-office, .dmv-office-2 { grid-template-columns: 1fr; }
  .dmv-services { grid-template-columns: 1fr; }
  .dmv-rules { grid-template-columns: 1fr; }
  .dmv-field-grid { grid-template-columns: 1fr; }
  .dmv-review-list > div { grid-template-columns: 1fr; gap: 2px; }
  .dmv-review-list dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
  .dmv-nav { flex-direction: column-reverse; align-items: stretch; }
  .dmv-nav .btn { width: 100%; }
  .dmv-nav-right { flex-direction: column-reverse; align-items: stretch; }
  .dmv-soon { flex-direction: column; gap: 12px; }
  /* long uppercase buttons must wrap rather than push the page wide (DMV pages only) */
  .dmv-notice ~ section .btn { white-space: normal; text-align: center; }
  .dmv-appno { font-size: 1rem; letter-spacing: .12em; padding: 12px 16px; }
}
