/* order.css — the service intake form (FRONTPAGE-SPEC Phase 1).
   Loaded only by a page carrying `order-form: true` in its meta.

   House grammar, not a generic form: labels are the display face in dial caps,
   every price is mono because a price is spec data, the fieldsets are the
   .panel's gold rule turned into a section marker, and the selected tier is
   marked in green because green is the "verified / this is the one" semantic
   the rest of the site already uses. Nothing here restyles a site.css class. */

/* ---------- pending state ---------- */
/* The form exists before its backend does. This is the visible half of that
   fact (CLAUDE.md: "Unfinished things say so on the page"); .page-pending in
   the class list is what tools/release.js greps for. Styled here rather than
   borrowed from store.css, which this page does not load. */
.ord-pending-flag {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.6;
  color: var(--oxblood); max-width: none;
  margin: 0 0 1.4rem; padding: 0.9rem 1.1rem;
  border: 1px dashed var(--oxblood);
  background: color-mix(in srgb, var(--oxblood) 5%, transparent);
}
.ord-pending-flag a { color: var(--oxblood); }

/* ---------- the form ---------- */
.ord-form-wrap { margin: 2rem 0 0; }
.ord-form { max-width: 46rem; }

.ord-fs {
  border: none; border-left: 3px solid var(--gold);
  margin: 0 0 2rem; padding: 0.2rem 0 0.4rem 1.4rem;
}
.ord-fs > legend {
  font-family: var(--disp); font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxblood);
  padding: 0 0 0.3rem;
}

.ord-label {
  display: block;
  font-family: var(--disp); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 0.3rem;
}
.ord-label-block { max-width: none; margin: 1.6rem 0 0.6rem; }
.ord-opt {
  font-weight: 500; letter-spacing: 0.1em; text-transform: none;
  color: var(--ink-soft); opacity: 0.8;
}

.ord-field { display: block; margin: 0 0 1.1rem; }
.ord-row { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.ord-row .ord-field { flex: 1 1 14rem; }
.ord-row .ord-field-wide { flex: 2 1 20rem; }

.ord-form input[type="text"],
.ord-form input[type="email"],
.ord-form input[type="tel"],
.ord-form select,
.ord-form textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; line-height: 1.5;
  color: var(--ink); background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 2px; padding: 0.55rem 0.7rem;
}
.ord-form select { font-family: var(--disp); font-size: 1.05rem; letter-spacing: 0.06em; }
.ord-form textarea { resize: vertical; min-height: 5.5rem; }
.ord-form input:focus-visible,
.ord-form select:focus-visible,
.ord-form textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px;
  border-color: var(--gold-dim);
}
/* Fields are marked invalid only once the browser has had a submit attempt —
   :invalid on an untouched empty required field would paint the form red
   before anyone typed anything. .ord-checked is set by order-form.js. */
.ord-form.ord-checked input:invalid,
.ord-form.ord-checked textarea:invalid { border-color: var(--oxblood); }

.ord-note {
  font-size: 0.94rem; line-height: 1.6; color: var(--ink-soft);
  margin: 0.5rem 0 0;
}
.ord-quote-note { margin: 0.7rem 0 0; color: var(--oxblood); font-size: 0.82rem; }

/* ---------- channel + tier: the two card-choice groups ---------- */
.ord-channel { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.4rem 0 0; }
.ord-channel-opt {
  flex: 1 1 17rem; display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.85rem 1rem; cursor: pointer;
  background: var(--paper-panel);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 2px;
}
.ord-channel-opt:has(input:checked) {
  border-left-color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--paper-panel));
}
.ord-channel-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.ord-channel-body { display: block; }
.ord-channel-name {
  display: block; font-family: var(--disp); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxblood);
}
.ord-channel-blurb {
  display: block; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft);
  margin-top: 0.15rem;
}

.ord-tiers { display: grid; gap: 0.6rem; }
.ord-tier {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem;
  align-items: start; padding: 0.75rem 1rem; cursor: pointer;
  background: var(--paper-panel);
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 2px;
}
.ord-tier:has(input:checked) {
  border-left-color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--paper-panel));
}
.ord-tier:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.ord-tier input { margin-top: 0.35rem; }
.ord-tier-name {
  display: block; font-family: var(--disp); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxblood);
}
.ord-tier-blurb {
  display: block; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft);
}
.ord-tier-price {
  font-size: 1.15rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  align-self: center;
}
/* A make with no published price says so in words rather than showing a dash
   that could read as "free". */
.ord-tier-price[data-quoted] {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.ord-addon {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper); background: var(--gold-dim);
  padding: 0.12rem 0.35rem; border-radius: 2px; vertical-align: 0.12em;
}

/* ---------- the restoration bracket ----------
   Shown INSTEAD of the tier group when the chosen model has no parts behind it
   (Ilya, 2026-08-31). Gold rule, not green and not oxblood: this is neither a
   verified state nor a closed road — it is a different service, and the order
   still goes through. */
.ord-restoration {
  background: var(--paper-panel); border-left: 3px solid var(--gold);
  padding: 1.1rem 1.3rem; margin: 1.6rem 0 0;
}
.ord-restoration p { max-width: none; }
.ord-restoration p:last-child { margin-bottom: 0; }
.ord-restoration-head {
  font-family: var(--disp); font-weight: 600; font-size: 1.2rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxblood);
  margin: 0 0 0.4rem;
}
.ord-restoration-model { font-weight: 600; }

/* ---------- submit / mail-in swap ---------- */
.ord-submit-row { margin: 0.6rem 0 0; }
.ord-submit { margin: 0.4rem 0 0; border: none; cursor: pointer; font-size: 1.05rem; }
.ord-submit:disabled { background: var(--ink-soft); cursor: not-allowed; opacity: 0.75; }
.ord-submit-row .cf-turnstile { margin: 0 0 0.9rem; }

/* Mail-in: the interim copy that REPLACES the submit. Oxblood rule, not green —
   this is a route that is not open yet, not a verified state. */
.ord-mailin {
  background: var(--paper-panel); border-left: 3px solid var(--oxblood);
  padding: 1.1rem 1.3rem; margin: 0.6rem 0 0;
}
.ord-mailin p { max-width: none; }
.ord-mailin-head {
  font-family: var(--disp); font-weight: 600; font-size: 1.2rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--oxblood);
  margin: 0 0 0.4rem;
}

.ord-status {
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.6;
  margin: 1.1rem 0 0; max-width: 52ch;
}
.ord-status[data-state="working"] { color: var(--ink-soft); }
.ord-status[data-state="ok"] { color: var(--green); }
.ord-status[data-state="err"] { color: var(--oxblood); }

@media (max-width: 40rem) {
  .ord-fs { padding-left: 1rem; }
  .ord-tier { grid-template-columns: auto 1fr; }
  .ord-tier-price { grid-column: 2; justify-self: start; align-self: start; }
  .ord-submit { display: block; width: 100%; text-align: center; }
}

/* The verification door (TIE-IN-PROCESS-PAGE R4/R5, 2026-09-05): the front
   page's .hero-door chrome — display small caps, green, hairline underline —
   on each service tier's line and on the success state, pointing at
   process.html#calibration. The phrase is Ilya's from the FRONTPAGE-SPEC COPY
   BLOCK and is not restated here; build.js and order-form.js carry it. */
.ord-verify {
  display: inline-block; margin-top: 0.35rem;
  font-family: var(--disp); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
  padding-bottom: 1px;
}
.ord-verify:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.ord-status .ord-verify { display: block; margin-top: 0.6rem; font-family: var(--disp); }
