/* BesoinAvocat request page. Same design system as the besoinavocat.ca storefront (www/public/assets/site.css):
   TAKATAK navy and blue light, BesoinAvocat orange for actions. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("/fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); }
:root {
  --void: #050b18; --ground: #071127; --navy: #0a1733; --panel: #0d1c3c; --panel-2: #12264d; --raise: #173061;
  --line: rgba(150, 182, 235, .16); --line-strong: rgba(150, 182, 235, .32);
  --text: #edf3fc; --soft: #c6d3e6; --muted: #9fb0c9;
  --blue: #1f8bff; --cyan: #29c3ff; --link: #6fd6ff; --orange: #ff751f; --orange-hi: #ff8f45; --ink: #170b02;
  --danger: #ff8a7a; --danger-bg: rgba(255, 90, 70, .1); --warn-bg: rgba(255, 198, 92, .09); --warn-line: rgba(255, 198, 92, .45); --warn-ink: #ffe3ad;
  --radius: 18px;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); }
body { margin: 0; color: var(--text); font: 400 16px/1.6 var(--sans);
  background: radial-gradient(1000px 560px at 10% -10%, rgba(31, 139, 255, .22), transparent 62%), radial-gradient(800px 480px at 100% 0%, rgba(255, 117, 31, .1), transparent 60%), linear-gradient(180deg, var(--ground) 0, var(--void) 900px);
  background-repeat: no-repeat; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(150, 182, 235, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 182, 235, .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0, transparent 75%); }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: #a5e6ff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { color: #fff; line-height: 1.15; margin: 0; font-family: var(--display); font-weight: 750; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
strong { color: #fff; }
.ba-wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.ba-skip { position: absolute; left: 16px; top: -80px; z-index: 10; background: var(--orange); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.ba-skip:focus { top: 12px; }

/* Header */
.ba-top { position: sticky; top: 0; z-index: 5; background: rgba(5, 11, 24, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ba-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.ba-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.ba-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, #13264d, #0a1733); box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 24px -6px rgba(255, 117, 31, .6); }
.ba-brand__mark svg { width: 20px; height: 20px; }
.ba-brand__name { font: 700 1.18rem/1 var(--display); letter-spacing: -.02em; color: #fff; }
.ba-brand__name strong { color: var(--orange); font-weight: 700; }
.ba-brand__name small { color: var(--soft); font-size: .78em; }
.ba-top__tools { display: flex; align-items: center; gap: 14px; }
.ba-top__phone { font: 600 .86rem/1 var(--mono); color: var(--soft); text-decoration: none; white-space: nowrap; }
.ba-top__phone:hover { color: #fff; }
.ba-lang { display: flex; padding: 3px; border-radius: 10px; background: rgba(13, 28, 60, .8); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ba-lang button { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 6px 11px; font: 700 .76rem/1 var(--mono); min-height: 32px; letter-spacing: .06em; }
.ba-lang button[aria-pressed="true"] { background: var(--cyan); color: #04121f; }
@media (max-width: 420px) {
  .ba-top__tools { flex-direction: column-reverse; gap: 6px; align-items: flex-end; }
}

/* Hero and request card */
.ba-hero { padding: 48px 0 64px; }
.ba-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); grid-template-areas: "copy card" "points card"; column-gap: 56px; align-items: start; }
.ba-hero__copy { grid-area: copy; padding-top: 18px; }
.ba-card { grid-area: card; }
.ba-points { grid-area: points; }
.ba-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font: 600 .72rem/1.4 var(--mono); letter-spacing: .16em; margin-bottom: 16px; }
.ba-eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.ba-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; max-width: 14ch; }
.ba-hero h1 em { display: block; font-style: normal; background: linear-gradient(92deg, #fff 0%, #bfe9ff 45%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ba-lead { font-size: 1.1rem; color: var(--soft); max-width: 46ch; margin: 22px 0 0; }
.ba-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.ba-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 28, 60, .5); }
.ba-points__icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--cyan); font: 700 .78rem/1 var(--mono);
  background: radial-gradient(circle at 30% 20%, rgba(41, 195, 255, .25), rgba(31, 139, 255, .06)); box-shadow: inset 0 0 0 1px rgba(41, 195, 255, .3); }
.ba-points strong { display: block; color: #fff; margin-bottom: 2px; font-family: var(--display); }
.ba-points p { margin: 0; color: var(--muted); font-size: .93rem; }
.ba-card { position: relative; border-radius: 22px; padding: clamp(20px, 3vw, 36px); scroll-margin-top: 88px;
  background: linear-gradient(180deg, #0f2147, #0a1733) padding-box, linear-gradient(140deg, rgba(41, 195, 255, .7), rgba(31, 139, 255, .15) 45%, rgba(255, 117, 31, .55)) border-box;
  border: 1px solid transparent; box-shadow: 0 40px 90px -36px rgba(31, 139, 255, .6); }
.ba-card:focus { outline: none; }

/* Stepper */
.ba-steps { list-style: none; margin: 0 0 24px; padding: 0 0 18px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.ba-steps--4 { grid-template-columns: repeat(4, 1fr); }
.ba-steps--6 { grid-template-columns: repeat(6, 1fr); }
.ba-steps--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ba-branch { align-items: start; }
.ba-review-confirm { margin-top: 22px; }
.ba-steps li { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font: 600 .68rem/1.25 var(--mono); letter-spacing: .02em; }
.ba-steps li > span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(150, 182, 235, .08); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .74rem; }
.ba-steps li[aria-current="step"] { color: #fff; }
.ba-steps li[aria-current="step"] > span:first-child { background: var(--orange); color: var(--ink); box-shadow: 0 0 18px -4px rgba(255, 117, 31, .8); }
.ba-steps li.is-complete > span:first-child { background: rgba(41, 195, 255, .18); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(41, 195, 255, .5); }

/* Step content */
.ba-step-label { color: var(--cyan); font: 600 .72rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.ba-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 750; margin-bottom: 8px; }
.ba-card h2:focus { outline: none; }
.ba-hint { color: var(--soft); margin-bottom: 20px; }
.ba-fine { color: var(--muted); font-size: .8rem; line-height: 1.55; margin: 6px 0 10px; }
.ba-avoid { border-left: 3px solid var(--warn-line); padding-left: 10px; }
.ba-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-choice { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; border: 1px solid var(--line-strong); background: rgba(13, 28, 60, .7); border-radius: 14px; padding: 22px 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ba-choice:hover:not(:disabled) { border-color: var(--cyan); transform: translateY(-1px); }
.ba-choice.is-selected { border-color: var(--cyan); background: linear-gradient(140deg, rgba(41, 195, 255, .16), rgba(13, 28, 60, .8)); box-shadow: inset 0 0 0 1px var(--cyan), 0 18px 40px -22px rgba(41, 195, 255, .7); }
.ba-choice strong { font: 700 1.04rem/1.3 var(--display); color: #fff; padding-right: 28px; }
.ba-choice > span:last-child { font-size: .88rem; color: var(--muted); }
.ba-choice__mark { position: absolute; top: 18px; right: 18px; color: var(--cyan); font-weight: 700; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 8px; }
.ba-field { margin-bottom: 14px; }
.ba-field--wide { grid-column: 1 / -1; }
.ba-field label, .ba-options legend { display: block; font-size: .88rem; font-weight: 650; color: #fff; margin-bottom: 7px; }
label small, legend small { color: var(--muted); font: 500 .68rem/1 var(--mono); margin-left: 6px; letter-spacing: .04em; }
.ba-field input, .ba-field select, .ba-field textarea { display: block; width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; background: rgba(5, 11, 24, .7); color: #fff; }
.ba-field input:hover, .ba-field select:hover, .ba-field textarea:hover { border-color: rgba(41, 195, 255, .5); }
.ba-field select option { background: #0a1733; color: #fff; }
.ba-field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.ba-field ::placeholder { color: #7f91ad; }
.ba-count { text-align: right; color: var(--muted); font: 500 .74rem/1 var(--mono); margin: 8px 0 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.ba-options { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.ba-options > div { display: grid; gap: 8px; }
.ba-options--inline > div { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ba-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(13, 28, 60, .6); padding: 11px 13px; cursor: pointer; font-size: .93rem; min-height: 46px; color: var(--soft); }
.ba-option:hover { border-color: rgba(41, 195, 255, .55); }
.ba-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--cyan); flex: 0 0 auto; }
.ba-option.is-selected, .ba-option:has(input:checked) { border-color: var(--cyan); background: rgba(41, 195, 255, .12); box-shadow: inset 0 0 0 1px var(--cyan); color: #fff; }
.ba-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: .9rem; color: var(--soft); }
.ba-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--orange); }
.ba-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Notices */
.ba-notice, .ba-error { border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; font-size: .9rem; overflow-wrap: anywhere; }
.ba-notice { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.ba-notice strong { color: #fff2d6; }
.ba-notice a { color: #ffd88f; }
.ba-notice p, .ba-error p { margin: 6px 0; }
.ba-notice ul { margin: 8px 0 0; padding-left: 18px; }
.ba-notice--urgent { border-left: 4px solid var(--orange); }
.ba-error { background: var(--danger-bg); border: 1px solid rgba(255, 138, 122, .5); color: #ffd3cc; }
.ba-error:focus { outline: 2px solid var(--orange); }

/* Actions */
.ba-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; }
.ba-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 13px 26px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--orange-hi), var(--orange)); color: var(--ink); font: 750 .92rem/1.2 var(--display); letter-spacing: .03em; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(255, 117, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ba-button:hover:not(:disabled) { background: linear-gradient(180deg, #ffa060, var(--orange-hi)); color: var(--ink); }
.ba-button--light { background: rgba(13, 28, 60, .7); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.ba-button--light:hover:not(:disabled) { background: rgba(23, 48, 97, .9); color: #fff; box-shadow: inset 0 0 0 1px var(--cyan); }
.ba-back { border: 0; background: none; color: var(--soft); font-weight: 600; padding: 12px 4px; }
.ba-back:hover { color: #fff; }
.ba-link-button { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 2px 0; color: var(--link); font-size: .86rem; font-weight: 650; }

/* Review */
.ba-review { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: rgba(5, 11, 24, .45); }
.ba-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ba-review h3 { font: 700 .95rem/1.3 var(--display); }
.ba-review dl { margin: 0; }
.ba-review dl > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.ba-review dl > div:first-child { border-top: 0; }
.ba-review dt { color: var(--muted); font-size: .83rem; }
.ba-review dd { margin: 0; font-size: .92rem; font-weight: 550; color: #fff; overflow-wrap: anywhere; }
.ba-review dl > div.is-wide dd { white-space: pre-wrap; font-weight: 400; color: var(--soft); }

/* Receipt */
.ba-received { text-align: center; padding: 12px 4px; }
.ba-received__mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; color: #04121f; font-size: 1.7rem; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 0 40px -6px rgba(41, 195, 255, .8); }
.ba-received h2 { margin-bottom: 14px; }
.ba-received p { color: var(--soft); max-width: 52ch; margin: 0 auto 14px; }
.ba-reference { display: inline-block; font-family: var(--mono); word-break: break-all; background: rgba(41, 195, 255, .1); box-shadow: inset 0 0 0 1px rgba(41, 195, 255, .4); color: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }

/* How it works, professionals, footer */
.ba-how { padding: 64px 0; background: linear-gradient(180deg, rgba(10, 23, 51, .55), rgba(10, 23, 51, .2)); border-block: 1px solid var(--line); }
.ba-how h2, .ba-pros h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 26px; }
.ba-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ba-how__steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, rgba(18, 38, 77, .75), rgba(13, 28, 60, .75)); }
.ba-how__steps li > span { display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 8px; margin-bottom: 16px; color: var(--cyan); font: 700 .78rem/1 var(--mono); background: rgba(41, 195, 255, .08); box-shadow: inset 0 0 0 1px rgba(41, 195, 255, .3); }
.ba-how__steps strong { display: block; color: #fff; font: 700 1.05rem/1.3 var(--display); margin-bottom: 6px; }
.ba-how__steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.ba-pros { padding: 56px 0; }
.ba-pros__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 22px; border: 1px solid rgba(255, 117, 31, .35); background: radial-gradient(600px 220px at 100% 0%, rgba(255, 117, 31, .16), transparent 70%), rgba(13, 28, 60, .6); }
.ba-pros h2 { margin-bottom: 8px; }
.ba-pros p { margin: 0; max-width: 62ch; color: var(--soft); }
.ba-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.ba-footer__inner { display: grid; gap: 14px; }
.ba-footer p { margin: 0; max-width: 90ch; }
.ba-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ba-footer a { color: var(--soft); text-decoration: none; }
.ba-footer a:hover { color: #fff; }

@media (max-width: 980px) {
  .ba-hero { padding: 28px 0 44px; }
  .ba-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "card" "points"; row-gap: 26px; }
  .ba-hero__copy { padding-top: 0; }
  .ba-points { margin-top: 6px; }
  .ba-how__steps { grid-template-columns: 1fr; }
  .ba-pros__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .ba-top__inner { min-height: 62px; }
  .ba-brand__mark { width: 32px; height: 32px; }
  .ba-brand__name { font-size: 1rem; }
  .ba-top__phone { font-size: .8rem; }
  .ba-top__tools { gap: 8px; }
  .ba-card { border-radius: 16px; padding: 18px 16px; }
  .ba-choices, .ba-grid { grid-template-columns: 1fr; }
  .ba-steps { display: flex; align-items: center; gap: 6px; }
  .ba-steps li { position: relative; flex: 0 0 auto; flex-direction: row; align-items: center; }
  .ba-steps li > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ba-steps li[aria-current="step"] { flex: 1 1 auto; }
  .ba-steps li[aria-current="step"] > span:last-child { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
  .ba-steps--7 { flex-wrap: wrap; gap: 5px; }
  .ba-steps--7 li > span:first-child { width: 24px; height: 24px; flex-shrink: 0; }
  .ba-steps--7 li[aria-current="step"] { min-width: 110px; }
  .ba-review dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ba-actions { gap: 10px; }
  .ba-button { padding: 12px 18px; }
  .ba-pros__inner { padding: 22px; }
}
@media (max-width: 380px) {
  .ba-top__phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ba-choice:hover:not(:disabled) { transform: none; }
}
@media print {
  html, body { background: #fff; color: #000; }
  body::before, .ba-top__tools, .ba-pros, .ba-actions, .ba-skip { display: none; }
  .ba-card { box-shadow: none; background: #fff; border: 1px solid #999; }
  h1, h2, h3, strong, .ba-review dd { color: #000; }
}
