/* ── Ommpo Care — client portal request forms ───────────────────
   Shared styles for Repair Request & Concierge Request.
   Each form sets its accent via .form-card.repair / .form-card.concierge.
   Built on site.css tokens. */

.form-page { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 104px); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); text-decoration: none; margin-bottom: 26px; transition: color .15s ease; }
.back-link:hover { color: var(--ink); }
.back-link svg { flex: none; }

/* form hero */
.form-hero { display: flex; gap: 20px; align-items: flex-start; }
.form-hero .badge { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.form-hero .badge.repair { background: var(--warn-soft); color: var(--warn); }
.form-hero .badge.concierge { background: var(--accent-soft); color: var(--accent-ink); }
.form-title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.0; letter-spacing: -0.015em; margin: 0; }
.form-title em { font-style: italic; }
.form-card.repair .form-title em { color: var(--warn); }
.form-card.concierge .form-title em { color: var(--accent-ink); }
.page-head .form-title em { color: var(--accent-ink); }
.form-lede { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin: 12px 0 0; max-width: 52ch; }
.page-head { margin-bottom: 30px; }

/* no-login pill */
.nologin { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; }
.nologin .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 11px; flex: none; }

/* ── Form shell ──────────────────────────────────────────── */
.form-card { --f: var(--accent-ink); --f-soft: var(--accent-soft); --f-line: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.form-card.repair { --f: var(--warn); --f-soft: var(--warn-soft); --f-line: color-mix(in oklab, var(--warn) 45%, var(--line)); }
.form-card.concierge { --f: var(--accent-ink); --f-soft: var(--accent-soft); --f-line: color-mix(in oklab, var(--accent) 45%, var(--line)); }

.fset { padding: 30px 0; border-top: 1px solid var(--line); }
.fset:first-of-type { border-top: 0; padding-top: 6px; }
.fset-head { margin-bottom: 20px; }
.fset-step { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--f); }
.fset-title { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.06; letter-spacing: -0.01em; margin: 8px 0 0; }
.fset-note { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; margin: 6px 0 0; }

/* choice grid (category radios as cards) */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--line-2); }
.choice .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.choice .ct-name { display: block; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.choice .ct-sub { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; margin-top: 3px; }
.choice .tickmark { position: absolute; top: 12px; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--f); color: var(--paper); display: grid; place-items: center; font-size: 12px; opacity: 0; transform: scale(0.6); transition: opacity .15s ease, transform .15s ease; }
.choice:has(input:checked) { border-color: var(--f-line); background: var(--f-soft); box-shadow: 0 1px 0 var(--f-line) inset; }
.choice:has(input:checked) .ic { background: var(--paper); color: var(--f); border-color: var(--f-line); }
.choice:has(input:checked) .tickmark { opacity: 1; transform: scale(1); }
.choice.is-on { border-color: var(--f-line); background: var(--f-soft); box-shadow: 0 1px 0 var(--f-line) inset; }
.choice.is-on .ic { background: var(--paper); color: var(--f); border-color: var(--f-line); }
.choice.is-on .tickmark { opacity: 1; transform: scale(1); }
.choice input:focus-visible ~ .ic { outline: 2px solid var(--f); outline-offset: 2px; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }

/* fields */
.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.lbl { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.lbl .opt { font-weight: 400; color: var(--ink-3); }
.lbl .req { color: var(--warn); }
.input, .textarea, .select { width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a6056' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; cursor: pointer; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--f); box-shadow: 0 0 0 3px var(--f-soft); }
.input.invalid { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-help { font-size: 12.5px; color: var(--ink-3); margin: 7px 0 0; }
.err-msg { display: none; font-size: 13px; color: var(--warn); margin: 7px 0 0; }
.field.show-err .err-msg { display: block; }

/* dropzone */
.dropzone { display: grid; place-items: center; text-align: center; gap: 6px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 28px 20px; background: var(--bg-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--f); background: var(--f-soft); outline: none; }
.dz-ico { color: var(--ink-3); }
.dz-main { font-size: 14.5px; color: var(--ink-2); }
.dz-main u { color: var(--f); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dz-sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.dz-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dz-files li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 8px 8px; }
.fthumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.fname { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.fdel { border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.fdel:hover { color: var(--warn); }

/* segmented urgency */
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.seg { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg:hover { border-color: var(--line-2); }
.seg-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.seg-sub { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.seg:has(input:checked) { border-color: var(--f-line); background: var(--f-soft); box-shadow: 0 1px 0 var(--f-line) inset; }
.seg.urgent:has(input:checked) { border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); background: var(--warn-soft); }
.seg.urgent:has(input:checked) .seg-name { color: var(--warn); }
.seg.is-on { border-color: var(--f-line); background: var(--f-soft); box-shadow: 0 1px 0 var(--f-line) inset; }
.seg.urgent.is-on { border-color: color-mix(in oklab, var(--warn) 50%, var(--line)); background: var(--warn-soft); }
.seg.urgent.is-on .seg-name { color: var(--warn); }
@media (max-width: 640px) { .seg-grid { grid-template-columns: 1fr 1fr; } }

/* presence radios */
.radio-row { display: flex; flex-direction: column; gap: 10px; }
.radio-opt { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.radio-opt input { position: absolute; opacity: 0; pointer-events: none; }
.radio-opt:hover { border-color: var(--line-2); }
.radio-opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; transition: border-color .15s ease; }
.radio-opt:has(input:checked) { border-color: var(--f-line); background: var(--f-soft); }
.radio-opt:has(input:checked) .dot { border-color: var(--f); }
.radio-opt:has(input:checked) .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--f); }
.radio-opt.is-on { border-color: var(--f-line); background: var(--f-soft); }
.radio-opt.is-on .dot { border-color: var(--f); }
.radio-opt.is-on .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--f); }
.ro-name { font-size: 15px; font-weight: 500; color: var(--ink); }
.ro-sub { font-size: 13.5px; color: var(--ink-3); }

/* submit */
.submit-bar { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-warn { background: var(--warn); color: var(--paper); }
.btn-warn:hover { background: oklch(0.56 0.14 45); }
.assure { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin: 0; max-width: 52ch; }

/* ── Confirmation ────────────────────────────────────────── */
.confirm { display: none; }
.confirm.show { display: block; animation: confrise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes confrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.confirm .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 24px; }
.confirm h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.02; letter-spacing: -0.015em; margin: 0; }
.confirm .c-lede { font-size: 17px; color: var(--ink-2); line-height: 1.55; margin: 14px 0 0; max-width: 54ch; }
.confirm .promise { display: inline-flex; align-items: center; gap: 11px; margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-size: 14.5px; color: var(--ink); }
.confirm .promise .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent); animation: confpulse 1.8s ease infinite; }
@keyframes confpulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 45%, transparent); } 70%,100% { box-shadow: 0 0 0 9px transparent; } }
.ref-card { margin-top: 26px; background: var(--brand); color: var(--paper); border-radius: 16px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ref-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.84 0.08 150); }
.ref-num { font-family: var(--mono); font-size: 24px; font-weight: 500; color: var(--paper); letter-spacing: 0.02em; }
.recap { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.recap-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.recap-row:first-child { border-top: 0; }
.recap-row .rk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.recap-row .rv { color: var(--ink); font-weight: 500; text-align: right; }
.next-steps { list-style: none; counter-reset: ns; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.next-steps li::before { content: counter(ns); font-family: var(--mono); font-size: 12px; color: var(--accent-ink); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.next-steps strong { color: var(--ink); font-weight: 500; }
.c-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.c-actions .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.c-actions .btn.ghost:hover { background: var(--paper); border-color: var(--ink); }

/* Selection state must be instant and reliably rendered (no transition fade) */
.choice, .choice .ic, .choice .tickmark, .seg, .radio-opt, .radio-opt .dot { transition: none; }
