/* Oregon Fingerprinting apostille order form — 3 steps, document checklist with quantities,
   live estimate. Ported from The Notaryous LLC design (Oct 31, 2026), ORF navy/blue/green tokens. */
.order-form.form { background: transparent; border: 0; box-shadow: none; padding: 0; }
.order-form .form-field { display: flex; flex-direction: column; }
.order-form .form-field label, .order-form .doc-row label { margin: 0 0 6px; font-size: .9rem; }
.order-form .form-hint { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.order-form .hint-inline { font-weight: 600; color: var(--muted); font-size: .8rem; }
.order-form .doc-row input[type=file] { margin-top: 0; }
.order-form .req { color: #B42318; }
.order-form h2.step__title { font-size: 1.5rem; margin: 0 0 .3rem; color: var(--navy); }
.order-form .doc-row select, .order-form .doc-row input[type=text] { margin: 0; }
/* ===== Oct 31, 2026 — apostille order form: document checklist with quantities ===== */
.doc-picker { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; min-width: 0; }
.doc-picker > legend, .tier-pick > legend { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.04em; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; padding: 0; }
.doc-picker .form-hint { display: block; margin-bottom: 0.8rem; }
.doc-list { display: grid; gap: 0.6rem; }
.doc-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.doc-row.is-on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.doc-row__main { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0.6rem 0.55rem 1rem; }
.doc-row__name { font-size: 1rem; color: var(--ink); line-height: 1.3; }
.doc-row__name small { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; margin-top: 0.15rem; }
.qty { display: inline-flex; align-items: center; gap: 0.25rem; flex: none; }
.qty__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field-line); background: var(--cream); color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qty__btn:hover { background: var(--blue-wash); }
.qty__btn:focus-visible, .qty__input:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.qty__btn[disabled] { opacity: 0.45; cursor: default; }
.doc-row .qty__input { width: 3.1rem; height: 44px; text-align: center; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--ink); padding: 0; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.doc-row__details { border-top: 1px dashed var(--line); padding: 0.85rem 1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.1rem; }
.doc-row__details[hidden] { display: none; }
.doc-row__details .form-field.full { grid-column: 1 / -1; }
.doc-error { color: #b4232a; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; margin-top: 0.6rem; }
.tier-pick { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; min-width: 0; }
.tier-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.tier-opt { position: relative; }
.tier-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tier-opt label { display: flex; flex-direction: column; gap: 0.15rem; height: 100%; background: var(--card); border: 1px solid var(--field-line); border-radius: var(--radius-sm); padding: 0.75rem 0.85rem; cursor: pointer; font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.01em; font-weight: 500; }
.tier-opt label b { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); font-weight: 700; letter-spacing: 0; }
.tier-opt label .tier-price { color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.tier-opt input:checked + label { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); background: var(--blue-wash); }
.tier-opt input:focus-visible + label { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.estimate { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.estimate h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.estimate ul { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.estimate li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; color: var(--muted); padding: 0.2rem 0; border-bottom: 1px dotted var(--line); }
.estimate li span:last-child { white-space: nowrap; color: var(--ink); font-weight: 600; }
.estimate__total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.estimate__total span:last-child { color: var(--blue); }
.estimate p { font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; max-width: none; }
@media (max-width: 760px) { .tier-options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doc-row__details { grid-template-columns: 1fr; } .doc-row__main { padding-left: 0.8rem; } }

/* ===== Oct 31, 2026 (rev 2) — centered split hero ===== */

/* ===== Oct 31, 2026 (rev 2) — apostille order: 3 steps + live estimate ===== */
.order-form { max-width: 1040px; margin-inline: auto; }
.order-steps { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; justify-content: center; gap: 0.5rem 1.6rem; flex-wrap: wrap; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.order-steps li { display: inline-flex; align-items: center; gap: 0.5rem; }
.order-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--field-line); background: var(--card); color: var(--ink); font-size: 0.8rem; }
.order-steps li[aria-current="step"] { color: var(--ink); }
.order-steps li[aria-current="step"] span { background: var(--blue); border-color: var(--blue); color: #fff; }
.order-steps li.is-done span { background: var(--blue-wash); border-color: var(--blue); color: var(--blue); }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; align-items: start; }
.order-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--shadow-sm); min-width: 0; }
.ostep + .ostep { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.order-form.is-stepped .ostep + .ostep { margin-top: 0; padding-top: 0; border-top: 0; }
.order-form.is-stepped .ostep:not(.is-active) { display: none; }
.order-form:not(.is-stepped) .step__nav [data-next], .order-form:not(.is-stepped) .step__nav [data-back] { display: none; }
.step__title { font-size: 1.45rem; margin-bottom: 0.3rem; }
.step__title:focus { outline: none; }
.step__hint { display: block; margin-bottom: 0.9rem; }
.step__field { margin-top: 1rem; max-width: 420px; }
.step__grid { margin-top: 1.1rem; }
.step__nav { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.3rem; flex-wrap: wrap; }
.step__nav .btn { min-height: 48px; }
.order-main .form-note { margin-top: 1.1rem; }
.doc-list + .doc-more-toggle, .doc-more-toggle { margin-top: 0.7rem; }
.doc-more-toggle { background: none; border: 1px dashed var(--field-line); border-radius: var(--radius-sm); width: 100%; min-height: 44px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--blue); cursor: pointer; }
.doc-more-toggle:hover { background: var(--blue-wash); }
.doc-more-toggle:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
#doc-more { margin-top: 0.6rem; }
.doc-row__main { padding-block: 0.4rem; }
.order-layout .estimate { position: sticky; top: 96px; grid-column: auto; }
.estimate__contact { margin-top: 0.6rem !important; }
.tier-pick > .form-hint { display: block; margin-bottom: 0.6rem; }
@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-layout .estimate { position: static; }
  .tier-options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .order-steps { gap: 0.4rem 0.9rem; font-size: 0.74rem; }
  .step__nav .btn { flex: 1 1 auto; justify-content: center; }
}
#doc-more[hidden] { display: none; }
.order-layout .tier-options { grid-template-columns: 1fr 1fr; }
.order-main .form-field label { font-size: 0.8rem; }
@media (max-width: 560px) {
  .order-main .form-grid { grid-template-columns: 1fr; }
  .step__nav { flex-direction: column-reverse; }
  .order-steps li span { width: 24px; height: 24px; }
}

/* ===== Oct 31, 2026 (rev 3) ===== */
.doc-row__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; padding: 0 1rem 0.65rem; font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); }
.doc-row__summary[hidden] { display: none; }
.doc-row__summary .needs { color: #b4232a; font-weight: 600; }
.doc-row__edit { background: none; border: 0; padding: 0.35rem 0.2rem; min-height: 32px; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; cursor: pointer; }
.doc-row__edit:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }
.multi-states { border: 0; padding: 0; margin: 0; min-width: 0; }
.multi-states > legend { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.04em; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; padding: 0; }
.multi-states__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem 0.9rem; }
.multi-states__grid label { font-weight: 500 !important; color: var(--muted) !important; }
.multi-toggle[hidden] { display: none; }
.multi-toggle__label { display: inline-flex !important; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.35rem 0.9rem; border: 1px dashed var(--blue); border-radius: var(--radius-sm); background: var(--blue-wash); cursor: pointer; font-family: var(--font-body) !important; font-size: 0.95rem !important; font-weight: 400 !important; letter-spacing: 0 !important; color: var(--ink) !important; }
.multi-toggle__label input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.multi-toggle__label:focus-within { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.doc-row__details .form-field[hidden] { display: none; }
.estimate li.est-sub { border-bottom: 0; padding-top: 0.6rem; font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.estimate li.est-later span:last-child { font-weight: 500; color: var(--muted); }

/* Neutralize the older .doc-row rules in styles.css (used by upload.html) inside the new order form */
.order-form .doc-row { display: block; padding: 0; gap: 0; border: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.order-form .doc-row.is-on { border-color: var(--blue); }
.order-form .doc-row input[type=file] { flex: none; order: 0; width: 100%; }
.order-form .doc-row__main { display: flex; }
