/* Custom Solution Request — Fabco-Air's brand blue on a quiet page. */
:root {
  color-scheme: light;
  --brand: #0091c8;
  --brand-dark: #007aa8;
  --brand-tint: #e8f5fb;
  --ink: #17242d;
  --muted: #5b6b76;
  --line: #dbe3e8;
  --field-line: #b9c7d0;
  --bg: #f2f5f7;
  --card: #ffffff;
  --bad: #c62828;
  --bad-tint: #fdecec;
  --ok: #2e7d32;
  --radius: 12px;
  --focus: 0 0 0 3px rgba(0, 145, 200, .3);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand-dark); }

/* Header: the logo has a transparent background, so it sits on any white. */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; }
.logo { height: 36px; width: auto; display: block; }
.top-tag { margin-left: auto; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }

/* Title and progress */
.head { margin: 0 0 14px; }
.title { font-size: 26px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.step-of { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 13.5px; }
.step-num { color: var(--ink); font-weight: 600; white-space: nowrap; }
.step-next { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.seg { flex: 1; }
.seg-btn { display: block; width: 100%; height: 6px; padding: 0; border: 0; border-radius: 3px; background: #d5dee4; cursor: default; transition: background .2s; }
.seg.is-done .seg-btn { background: var(--brand); }
.seg.is-now .seg-btn { background: var(--brand); box-shadow: 0 0 0 2px rgba(0, 145, 200, .22); }
.seg-btn:not(:disabled) { cursor: pointer; }
.seg-btn:not(:disabled):hover { background: var(--brand-dark); }
.seg-btn:focus-visible { outline: none; box-shadow: var(--focus); }
/* A taller hit area for the thin bar, without making it look thick. */
.seg-btn { position: relative; }
.seg-btn::after { content: ""; position: absolute; inset: -9px 0; }

/* The step card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(20, 40, 60, .06); }
.step-card { padding: 26px 28px 22px; }
.step-body.enter { animation: step-in .22s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec-title { font-size: 21px; line-height: 1.25; margin: 0 0 4px; outline: none; }
.sec-intro { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.sec-title + :not(.sec-intro) { margin-top: 20px; }

.field { margin: 0 0 20px; min-width: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.lbl { display: block; font-weight: 600; font-size: 14.5px; margin: 0 0 6px; }
.req { color: var(--bad); }
.opt-tag { font-weight: 400; color: var(--muted); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.err { font-size: 13px; color: var(--bad); margin: 6px 0 0; font-weight: 600; }

input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--field-line); border-radius: 8px; padding: 10px 12px; min-height: 46px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 104px; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: #93a8b5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.bad input, .bad select, .bad textarea { border-color: var(--bad); background: var(--bad-tint); }
::placeholder { color: #93a2ac; }

.unit-wrap { position: relative; }
.unit-wrap input { padding-right: 40px; }
.unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }

/* Choices: pill buttons, or cards for the request type. */
fieldset.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.choice legend { padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-body { display: flex; flex-direction: column; border: 1px solid var(--field-line); border-radius: 999px; padding: 9px 20px; min-height: 44px; justify-content: center; background: #fff; transition: background .12s, border-color .12s, box-shadow .12s; }
.opt-text { font-weight: 600; font-size: 14.5px; }
.opt:hover .opt-body { border-color: var(--brand); }
.opt input:checked + .opt-body { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt input:focus-visible + .opt-body { box-shadow: var(--focus); }
.bad .opt-body { border-color: var(--bad); }
.cards .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cards .opt-body { border-radius: var(--radius); padding: 18px 20px; align-items: flex-start; min-height: 96px; justify-content: flex-start; }
.cards .opt-text { font-size: 17px; }
.opt-hint { font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.cards .opt:hover .opt-body { box-shadow: 0 2px 8px rgba(0, 145, 200, .12); }
.cards .opt input:checked + .opt-body { background: var(--brand-tint); color: var(--ink); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cards .opt input:checked + .opt-body .opt-hint { color: var(--ink); }

/* Files */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed var(--field-line); border-radius: var(--radius); padding: 26px 16px; text-align: center; cursor: pointer; background: #fafcfd; transition: background .12s, border-color .12s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-tint); }
.file-input:focus-visible + .drop { box-shadow: var(--focus); border-color: var(--brand); }
.drop.bad { border-color: var(--bad); }
.drop-icon { color: var(--brand); line-height: 0; margin-bottom: 4px; }
.drop-main { font-weight: 600; }
.drop-link { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.drop-sub { font-size: 13px; color: var(--muted); }
.files { list-style: none; padding: 0; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 8px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.ftype { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--brand-dark); background: var(--brand-tint); border-radius: 4px; padding: 2px 6px; min-width: 40px; text-align: center; }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fsize { font-size: 13px; color: var(--muted); }
.x { border: 0; background: none; font-size: 20px; line-height: 1; width: 36px; height: 36px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.x:hover { background: var(--bad-tint); color: var(--bad); }

/* Review */
.rv-sec { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 6px; margin: 0 0 12px; }
.rv-sec.bad { border-color: var(--bad); background: #fffafa; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-head h3 { font-size: 15px; margin: 0; }
.rv-sec > .err { margin: 2px 0 6px; }
.rv-list { margin: 6px 0 4px; }
.rv-row { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 2px 14px; padding: 6px 0; border-top: 1px solid #eef2f4; }
.rv-row:first-child { border-top: 0; }
.rv-row dt { color: var(--muted); font-size: 13.5px; }
.rv-row dd { margin: 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-row.bad dt, .rv-row.bad dd { color: var(--bad); }
.rv-empty { color: var(--muted); font-size: 14px; margin: 6px 0 8px; }
.link.edit { font-weight: 600; color: var(--brand-dark); padding: 4px 6px; }

/* Buttons and the step's own controls */
.captcha-wrap { margin: 18px 0 0; }
.turnstile { min-height: 65px; }
.nav-note .err { margin: 8px 0 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.btn { font: inherit; font-weight: 700; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 8px; padding: 11px 26px; min-height: 48px; cursor: pointer; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: #fff; color: var(--brand-dark); border-color: var(--field-line); }
.btn.ghost:hover { background: var(--brand-tint); border-color: var(--brand); }
.btn.primary { min-width: 150px; margin-left: auto; }
.btn.primary::after { content: " →"; }
.btn.primary.send::after { content: ""; }
.btn.send { min-width: 180px; }
.link { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px 4px; }
.send-status { font-size: 14px; color: var(--muted); margin: 10px 0 0; min-height: 0; text-align: right; }
.send-status:empty { display: none; }
.send-status.err { color: var(--bad); }
.below { text-align: center; margin: 12px 0 0; }

.done { text-align: center; padding: 40px 24px; }
.done h1 { font-size: 24px; margin: 12px 0 6px; outline: none; }
.done p { color: var(--muted); max-width: 52ch; margin: 8px auto; }
.done-check { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #e8f5e9; color: var(--ok); font-size: 30px; font-weight: 700; }
.done-ref { font-size: 18px; color: var(--ink) !important; }
.done-ref strong { font-family: Consolas, "SFMono-Regular", Menlo, monospace; letter-spacing: .04em; }
.done .btn { margin-top: 16px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { max-width: 720px; margin: 0 auto; padding: 0 16px 28px; display: flex; gap: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .wrap { padding-top: 18px; }
  .title { font-size: 22px; }
  .step-card { padding: 20px 16px 16px; }
  .top-tag { display: none; }
  .logo { height: 32px; }
  .sec-title { font-size: 19px; }
  .rv-row { grid-template-columns: 1fr; }
  .btn.primary, .btn.send { min-width: 0; flex: 1; }
  .send-status { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* A refusal note for several files: one per line. */
.err.lines { white-space: pre-line; }
