/* Visual migration of the existing TECHPOINT and Foco trade forms.
   Shared journey and transport are independent of the business theme. */
.foco-shared-form {
  --foco-accent:#174d3a; --foco-ink:#10251d; --foco-muted:#607068;
  --foco-line:#d9dfd9; --foco-primary:#ccf15c; --foco-paper:#fffdf8;
  --foco-choice-background:#e9ede8;
  box-sizing:border-box; width:100%; max-width:680px; min-width:0; margin:0 auto;
  border:1px solid var(--foco-line); border-radius:16px; overflow:hidden;
  background:#fff; color:var(--foco-ink); font:400 16px/1.6 Arial,Helvetica,sans-serif;
  color-scheme:light;
}
.foco-shared-form * { box-sizing:border-box; }
.foco-shared-form [hidden] { display:none!important; }
.foco-shared-form header { display:flex; align-items:center; gap:12px; padding:18px 24px; background:#f5f6ef; border-bottom:1px solid #dae4d8; }
.foco-brand-mark { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:13px; background:var(--foco-primary); color:var(--foco-ink); font-size:20px; font-weight:700; }
.foco-brand-mark svg { width:24px; height:24px; }
.foco-brand-text { min-width:0; }
.foco-shared-form header strong { display:block; font-size:18px; line-height:1.35; }
.foco-shared-form header p { margin:3px 0 0; color:var(--foco-muted); font-size:13px; }
.foco-shared-form ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px 24px 0; margin:0; list-style:none; }
.foco-shared-form ol li { display:flex; justify-content:center; align-items:center; min-height:92px; padding:10px; border:1px solid #dce4da; border-radius:12px; background:#f8f8f3; color:var(--foco-muted); text-align:center; line-height:1.35; }
.foco-shared-form ol [aria-current=step] { background:#ebf6d4; border-color:#a8c789; color:var(--foco-accent); }
.foco-shared-form ol .foco-step-done { background:#f2f6ea; border-color:#cadcc5; color:var(--foco-accent); }
.foco-shared-form ol button { width:100%; min-height:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font-size:13px; text-align:center; }
.foco-shared-form ol button:disabled { opacity:1; }
.foco-progress-number { display:block; font-size:29px; line-height:1.3; letter-spacing:-.03em; font-weight:700; }
.foco-progress-label { display:block; margin-top:0; }
.foco-form-body { padding:24px 28px 30px; }
.foco-shared-form .foco-step-count { display:inline-block; margin:5px 0 14px; padding:5px 11px; border-radius:999px; color:var(--foco-accent); background:#edf2e6; font-size:14px; font-weight:700; line-height:1.4; }
.foco-shared-form h1 { margin:0 0 16px; color:var(--foco-ink); font-size:25px; line-height:1.2; letter-spacing:-.025em; }
.foco-shared-form h2 { font-size:22px; line-height:1.3; }
.foco-shared-form h3 { font-size:18px; line-height:1.35; }
/* The shared shell owns the step heading; standalone work fields retain theirs. */
.foco-shared-form [data-step] > .foco-form-work-fields > h2 { display:none; }
.foco-shared-form p { margin:0 0 14px; overflow-wrap:break-word; }
.foco-shared-form button { min-height:48px; min-width:0; max-width:100%; padding:12px 17px; border:1px solid #789081; border-radius:9px; background:var(--foco-paper); color:var(--foco-ink); font:700 16px/1.35 Arial,Helvetica,sans-serif; cursor:pointer; white-space:normal; overflow-wrap:normal; word-break:normal; }
.foco-shared-form button:disabled { opacity:.55; cursor:not-allowed; }
.foco-shared-form .foco-primary { background:var(--foco-primary); border-color:var(--foco-ink); color:var(--foco-ink); }
.foco-shared-form button:hover:not(:disabled) { filter:brightness(.97); }
.foco-flow-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.foco-flow-actions .foco-primary { flex:1; }
.foco-shared-form .foco-ai-choice { margin:18px 0; padding:20px; border:1px solid #dbe3d8; border-radius:14px; background:#f6f6f0; }
.foco-ai-choice button { display:block; width:100%; margin:9px 0; min-height:52px; }
.foco-shared-form .foco-ai-choice p { font-size:13px; line-height:1.5; }
.foco-shared-form label { display:block; margin:18px 0 7px; font-weight:700; }
.foco-shared-form :is(.foco-form-work-fields,.foco-form-contact,.foco-form-photos) { font:inherit; color:inherit; }
.foco-shared-form :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { display:block; box-sizing:border-box; width:100%; max-width:100%; min-width:0; min-height:48px; padding:12px; border:1px solid #a9bcae; border-radius:10px; background:#fffefa; color:inherit; font:400 16px/1.5 Arial,Helvetica,sans-serif; }
.foco-shared-form textarea { resize:vertical; }
.foco-shared-form :is(button,input,textarea,select,summary,a):focus-visible { outline:3px solid var(--foco-accent); outline-offset:3px; }
.foco-shared-form .foco-work-choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0 10px; }
.foco-shared-form .foco-work-choice { display:flex; align-items:center; justify-content:space-between; min-height:68px; margin:0; padding:14px; border:1px solid var(--foco-line); border-radius:9px; background:var(--foco-paper); color:var(--foco-ink); font-size:14px; line-height:1.35; }
.foco-shared-form .foco-work-choice:has(input:checked) { border-color:var(--foco-accent); background:var(--foco-choice-background); }
.foco-shared-form .foco-work-indicator { color:var(--foco-accent); }
.foco-shared-form .foco-ai-message { margin:16px 0; padding:14px 16px; border-left:4px solid var(--foco-accent); border-radius:8px; background:#f7f7f7; white-space:pre-wrap; }
.foco-conversation details p { white-space:pre-wrap; }
.foco-shared-form summary { cursor:pointer; min-height:44px; padding:10px 0; }
.foco-shared-form .foco-check { display:flex; align-items:flex-start; gap:12px; font-size:14px; font-weight:400; }
.foco-check input { flex:none; width:20px; height:20px; margin-top:3px; accent-color:var(--foco-accent); }
.foco-shared-form .foco-form-help { color:var(--foco-muted); font-size:14px; line-height:1.5; }
.foco-shared-form .foco-flow-error { color:#912e20; background:#fff1ef; border-left:3px solid #912e20; margin:16px 0; padding:12px; }
.foco-safety { padding:18px; border:1px solid #bc553b; background:#fff3ee; border-radius:10px; }
.foco-demo-pill { display:inline-block; margin:14px 24px 8px!important; padding:6px 12px; background:#edf2e6; border-radius:30px; color:var(--foco-muted); font-size:13px; }
.foco-shared-form > button { margin:0 24px 12px; }
.foco-shared-form .foco-form-photos { background:#f6f6f0; border:1px solid #d6e0d6; border-radius:14px; padding:18px; margin-bottom:20px; }
.foco-shared-form .foco-form-photos h3 { margin:0 0 8px; font-size:16px; }
.foco-shared-form .foco-form-photos p { color:var(--foco-muted); font-size:13px; line-height:1.5; }
.foco-photo-actions { display:flex; gap:10px; margin-top:14px; }
.foco-shared-form .foco-photo-actions button { background:var(--foco-primary); border-color:var(--foco-ink); }
.foco-photo-actions button:first-child { flex:1; }
.foco-photo-actions button:last-child { flex:0 0 54px; width:54px; display:grid; place-items:center; padding:10px; }
.foco-shared-form .foco-photo-previews img { object-fit:contain; }
.foco-shared-form .foco-final-review dt { color:var(--foco-muted); }

/* TECHPOINT retains the existing white, grey and orange form identity. */
/* TECHPOINT's look is the IT default (1.1.133): the orange tints are custom properties with today's exact values, which a
   business's own branding replaces (applyBranding in branding.mjs). An IT form without branding looks exactly as before. */
.foco-shared-form[data-layout=line] { --foco-accent:#ed6f05; --foco-ink:#4c4b4a; --foco-muted:#666366; --foco-line:#e3e3e3; --foco-primary:#ed6f05; --foco-paper:#fff; --foco-it-done-line:#f6c39a; --foco-it-done-number:#fff0e3; --foco-it-soft:#fff7ef; --foco-it-link:#ef7000; --foco-it-on-primary:#292d32; border-color:#e6e6e6; border-radius:14px; font:400 16px/1.55 Arial,Helvetica,sans-serif; }
.foco-shared-form[data-layout=line] header { display:block; padding:20px 28px 12px; background:#fff; border:0; }
.foco-shared-form[data-layout=line] header strong { color:var(--foco-muted); font-size:16px; }
.foco-shared-form[data-layout=line] header p { margin:8px 0 0; padding-bottom:12px; border-bottom:3px solid var(--foco-accent); color:var(--foco-accent); font-size:30px; font-weight:700; line-height:1.2; }
.foco-shared-form[data-layout=line] ol { gap:6px; padding-top:0; }
.foco-shared-form[data-layout=line] ol li { min-height:90px; padding:12px 4px; border:0; border-bottom:3px solid #e8e8e8; border-radius:0; background:#fff; }
.foco-shared-form[data-layout=line] ol [aria-current=step] { border-color:var(--foco-accent); color:#3c3c3c; }
.foco-shared-form[data-layout=line] ol .foco-step-done { border-color:var(--foco-it-done-line); }
.foco-shared-form[data-layout=line] .foco-progress-number { display:grid; place-items:center; width:28px; height:28px; margin:0 auto 8px; border-radius:50%; background:#f2f2f2; font-size:14px; line-height:1; letter-spacing:0; }
.foco-shared-form[data-layout=line] [aria-current=step] .foco-progress-number { background:var(--foco-accent); color:var(--foco-it-on-primary); }
.foco-shared-form[data-layout=line] .foco-step-done .foco-progress-number { background:var(--foco-it-done-number); }
.foco-shared-form[data-layout=line] .foco-progress-label { font-size:14px; font-weight:400; }
.foco-shared-form[data-layout=line] [aria-current=step] .foco-progress-label { font-weight:700; }
.foco-shared-form[data-layout=line] .foco-form-body { padding-top:12px; }
.foco-shared-form[data-layout=line] .foco-step-count { display:block; background:none; color:var(--foco-muted); border-radius:0; padding:0; margin:0 0 5px; font-weight:400; }
.foco-shared-form[data-layout=line] h1 { color:var(--foco-muted); font-size:28px; margin-bottom:24px; }
.foco-shared-form[data-layout=line] :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { border-color:#aaa; border-radius:8px; background:#fff; }
.foco-shared-form[data-layout=line] button { border-color:#aaa; border-radius:8px; color:var(--foco-muted); }
.foco-shared-form[data-layout=line] .foco-primary { border-color:var(--foco-accent); background:var(--foco-accent); color:var(--foco-it-on-primary); }
.foco-shared-form[data-layout=line] .foco-flow-actions { border-top:1px solid #e3e3e3; margin-top:28px; padding-top:20px; }
.foco-shared-form[data-layout=line] .foco-ai-choice { border-color:var(--foco-accent); background:var(--foco-it-soft); border-radius:10px; }
.foco-shared-form[data-layout=line] .foco-ai-choice button:not(.foco-primary) { background:#666366; border-color:#666366; color:#fff; }
.foco-shared-form[data-layout=line] .foco-form-photos { background:#f7f7f7; border:0; border-radius:8px; padding:16px; }
.foco-shared-form[data-layout=line] .foco-photo-actions button { background:#fff; border-color:#aaa; color:var(--foco-muted); }
.foco-shared-form[data-layout=line] .foco-final-review dl > div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; padding:9px 0; border-bottom:1px solid #ededed; }
.foco-shared-form[data-layout=line] .foco-final-review dd { margin:0; font-weight:600; }
.foco-shared-form .foco-work-selector { margin:0; }

/* Trade desktop presentation from the existing embedded form. */
.foco-shared-form:not([data-layout=line]) { --foco-accent:#103f32; --foco-ink:#173b30; --foco-muted:#5b6d63; --foco-line:#dce3d9; --foco-primary:#c8f45d; --foco-paper:#fffdf6; --foco-choice-background:#f0f3ea; font-size:17px; }
.foco-shared-form:not([data-layout=line]) header { background:#f5f6ef; color:var(--foco-ink); padding:18px 24px; border-color:#dae4d8; }
.foco-shared-form:not([data-layout=line]) header strong { font-size:18px; line-height:1.6; }
.foco-shared-form:not([data-layout=line]) header p { color:var(--foco-muted); font-size:14px; margin:0; }
.foco-shared-form:not([data-layout=line]) ol li { min-height:92px; padding:10px; border:1px solid #dce4da; border-radius:12px; background:#f8f8f3; font-size:14px; font-weight:700; }
.foco-shared-form:not([data-layout=line]) ol button { font-size:14px; }
.foco-shared-form:not([data-layout=line]) ol [aria-current=step] { background:#ebf6d4; border-color:#a8c789; color:var(--foco-accent); }
.foco-shared-form:not([data-layout=line]) ol .foco-step-done { background:#f2f6ea; border-color:#cadcc5; }
.foco-shared-form:not([data-layout=line]) .foco-progress-number { font-size:29px; }
.foco-shared-form:not([data-layout=line]) .foco-form-body { padding:24px 28px 30px; }
.foco-shared-form:not([data-layout=line]) .foco-step-count { display:inline-block; padding:5px 11px; background:#edf2e6; margin:5px 0 14px; color:var(--foco-accent); font-weight:700; }
.foco-shared-form:not([data-layout=line]) h1 { font-size:28px; font-weight:600; letter-spacing:-.035em; margin-bottom:16px; }
.foco-shared-form:not([data-layout=line]) h3 { font-size:22px; line-height:1.3; margin:10px 0; }
.foco-shared-form:not([data-layout=line]) label { font-size:17px; margin:16px 0 0; }
.foco-shared-form:not([data-layout=line]) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { margin-top:8px; border-color:#789081; border-radius:8px; background:var(--foco-paper); padding:11px 12px; }
.foco-shared-form:not([data-layout=line]) .foco-work-choices { margin:16px 0 10px; }
.foco-shared-form:not([data-layout=line]) .foco-work-choice { margin:0; padding:14px; font-size:17px; gap:8px; }
.foco-shared-form:not([data-layout=line]) .foco-work-selector legend { margin:0; font-size:17px; font-weight:400; color:var(--foco-muted); line-height:1.55; }
.foco-shared-form:not([data-layout=line]) .foco-ai-choice { margin-top:18px; border:1px solid #dbe3d8; border-radius:14px; background:#f6f6f0; padding:20px; }
.foco-shared-form:not([data-layout=line]) .foco-ai-choice .foco-ai-intro { font-size:17px; font-weight:700; line-height:1.45; margin:8px 0 16px; }
.foco-shared-form:not([data-layout=line]) .foco-ai-message { border:1px solid #d6e0d6; border-left:4px solid var(--foco-accent); background:#f2f5ee; border-radius:12px; margin:6px 0 10px; padding:4px 14px 12px; }
.foco-shared-form:not([data-layout=line]) .foco-ai-message p { font-size:17px; font-weight:700; line-height:1.45; margin:4px 0 0; }
.foco-selected-context { font-size:14px; color:var(--foco-muted); border-left:3px solid var(--foco-accent); padding:7px 0 7px 12px; margin:16px 0 18px; background:#f4f6f0; border-radius:0 8px 8px 0; }
.foco-shared-form:not([data-layout=line]) .foco-flow-actions { border-top:1px solid #e0e6dd; margin-top:24px; padding-top:18px; }
.foco-shared-form:not([data-layout=line]) button { font-size:17px; }
.foco-shared-form:not([data-layout=line]) .foco-form-photos { background:#f6f6f0; border:1px solid #d6e0d6; border-radius:14px; margin:18px 0 20px; padding:18px; }
.foco-shared-form:not([data-layout=line]) .foco-form-photos h3 { font-size:18px; line-height:1.35; margin:0; }
.foco-shared-form:not([data-layout=line]) .foco-form-photos p { margin:7px 0; }
.foco-shared-form :is(.foco-context-fields,.foco-contact-grid) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.foco-shared-form .foco-contact-field { min-width:0; }

/* TECHPOINT dimensions from the approved original form stylesheet. */
.foco-shared-form[data-layout=line] { max-width:780px; }
.foco-shared-form[data-layout=line] p { margin-bottom:16px; }
.foco-shared-form[data-layout=line] ol { gap:10px; }
.foco-shared-form[data-layout=line] ol li { min-height:0; padding:6px 4px; }
.foco-shared-form[data-layout=line] .foco-progress-number { width:34px; height:34px; }
.foco-shared-form[data-layout=line] .foco-progress-label { font-size:16px; }
.foco-shared-form[data-layout=line] h1 { margin-bottom:10px; letter-spacing:-.02em; }
.foco-shared-form[data-layout=line] .foco-work-selector legend { margin:18px 0 7px; font-size:16px; font-weight:700; }
.foco-shared-form[data-layout=line] [data-step="0"] > .foco-form-work-fields > div:first-of-type .foco-work-selector legend { margin-top:0; }
.foco-shared-form[data-layout=line] .foco-form-work-fields label { margin:18px 0 7px; font-weight:700; }
/* Topic boxes are labels too: they keep the boxes' own spacing, not a field label's 18px above and 7px below (8 Nov 2026). */
.foco-shared-form[data-layout=line] .foco-form-work-fields label.foco-work-choice { margin:0; }
.foco-shared-form[data-layout=line] .foco-form-work-fields label span { font-weight:400; }
.foco-shared-form[data-layout=line] button { line-height:1.4; padding:12px 18px; }
.foco-shared-form[data-layout=line] .foco-form-help { margin:8px 0 16px; }
.foco-shared-form[data-layout=line] .foco-selected-context { padding:0 0 0 12px; margin:0 0 16px; background:none; border-radius:0; }
.foco-shared-form[data-layout=line] .foco-contact-grid { gap:0 20px; }
.foco-shared-form[data-layout=line] .foco-ai-choice h3 { font:700 18px/1.4 Arial,Helvetica,sans-serif; margin:0 0 10px; }
.foco-shared-form[data-layout=line] .foco-ai-choice .foco-ai-intro { font-size:16px; line-height:1.55; }
.foco-shared-form[data-layout=line] .foco-ai-choice button:not(.foco-primary) { min-height:50px; padding:14px 18px; }
.foco-shared-form[data-layout=line] .foco-ai-message { margin-right:20px; }
.foco-shared-form[data-layout=line] .foco-ai-message p { margin:0; font-size:17px; font-weight:700; line-height:1.55; color:#3f3e3d; }
.foco-shared-form[data-layout=line] .foco-ai-message strong { display:block; font-size:14px; margin-bottom:4px; }
.foco-shared-form[data-layout=line] .foco-urgent { font-size:14px; text-align:center; margin:22px 0 0; color:var(--foco-muted); }
.foco-shared-form[data-layout=line] .foco-urgent a { color:var(--foco-it-link); text-decoration:underline; text-underline-offset:4px; }
.foco-shared-form[data-layout=line] .foco-photo-actions button:last-child { flex-basis:56px; width:56px; }
.foco-shared-form[data-layout=line] .foco-photo-previews { grid-template-columns:repeat(3,minmax(0,1fr)); }
.foco-shared-form[data-layout=line] .foco-photo-previews img { max-height:110px; }
.foco-shared-form[data-layout=line] :is(button,input,textarea,select,summary,a):focus-visible { outline:3px solid #555; }

@media(max-width:1000px) {
  .foco-shared-form:not([data-layout=line]) { --foco-accent:#174d3a; --foco-ink:#10251d; --foco-muted:#607068; --foco-line:#d9dfd9; --foco-primary:#ccf15c; --foco-paper:#fffdf8; --foco-choice-background:#e9ede8; border-color:#d9e2d6; border-radius:18px; box-shadow:0 10px 28px rgba(19,60,45,.05); font-size:16px; }
  .foco-shared-form:not([data-layout=line]) header { padding:16px 18px; background:#f5f6ef; color:var(--foco-ink); border-color:#dae4d8; }
  .foco-shared-form:not([data-layout=line]) header strong { font-size:15px; }
  .foco-shared-form:not([data-layout=line]) header p { color:var(--foco-muted); font-size:13px; }
  .foco-shared-form:not([data-layout=line]) ol { gap:8px; padding:16px 14px 0; }
  .foco-shared-form:not([data-layout=line]) ol li { font-weight:700; font-size:12px; min-height:102px; padding:10px 5px; border:1px solid #dce4da; border-radius:12px; background:#f8f8f3; line-height:1.35; }
  .foco-shared-form:not([data-layout=line]) ol [aria-current=step] { background:#ebf6d4; border-color:#a8c789; color:var(--foco-accent); }
  .foco-shared-form:not([data-layout=line]) ol .foco-step-done { background:#f2f6ea; border-color:#cadcc5; }
  .foco-shared-form:not([data-layout=line]) .foco-progress-number { font-size:29px; }
  .foco-shared-form:not([data-layout=line]) .foco-form-body { padding:22px 18px 24px; }
  .foco-shared-form:not([data-layout=line]) .foco-step-count { display:inline-block; background:#edf2e6; color:var(--foco-accent); border-radius:999px; padding:5px 11px; margin:5px 0 14px; font-size:14px; font-weight:700; line-height:1.4; }
  .foco-shared-form:not([data-layout=line]) h1 { font-size:25px; font-weight:700; letter-spacing:-.025em; margin-bottom:16px; }
  .foco-shared-form:not([data-layout=line]) h3 { font-size:20px; }
  .foco-shared-form:not([data-layout=line]) .foco-context-fields label { margin-top:20px; }
  .foco-shared-form:not([data-layout=line]) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { border-color:#a9bcae; border-radius:12px; background:#fffefa; }
  .foco-shared-form:not([data-layout=line]) .foco-selected-context { padding:7px 0 7px 12px; margin:16px 0 18px; background:#f4f6f0; border-radius:0 8px 8px 0; }
  .foco-shared-form:not([data-layout=line]) .foco-ai-choice { background:#f6f6f0; border:1px solid #dbe3d8; border-radius:14px; margin-top:18px; padding:18px; }
  .foco-shared-form:not([data-layout=line]) .foco-ai-message { border:1px solid #d6e0d6; border-left:4px solid var(--foco-accent); background:#f2f5ee; padding:4px 14px 12px; margin:6px 0 10px; }
  .foco-shared-form:not([data-layout=line]) .foco-ai-message p { font-size:17px; line-height:1.45; margin-top:4px; }
  .foco-shared-form:not([data-layout=line]) .foco-form-photos { border:1px solid #d6e0d6; background:#f6f6f0; border-radius:14px; margin:18px 0 20px; padding:16px; }
  .foco-shared-form:not([data-layout=line]) .foco-form-photos h3 { font-size:16px; line-height:1.35; }
  .foco-shared-form:not([data-layout=line]) .foco-form-contact label { margin-top:14px; line-height:1.35; }
  .foco-shared-form:not([data-layout=line]) .foco-form-contact :is(input,select) { border-color:#a5b8a9; border-radius:10px; min-height:50px; }
  .foco-shared-form:not([data-layout=line]) .foco-flow-actions { border-color:#e0e6dd; margin-top:24px; padding-top:18px; }
}
@media(max-width:640px) {
  .foco-shared-form:not([data-layout=line]) :is(label,button,.foco-work-selector legend) { font-size:15px; }
  .foco-shared-form:not([data-layout=line]) ol button, .foco-shared-form:not([data-layout=line]) ol li { font-size:13px; }
  .foco-shared-form:not([data-layout=line]) .foco-work-choice { padding:10px; font-size:15px; }
  .foco-shared-form:not([data-layout=line]) .foco-work-choices { gap:8px; }
}
@media(max-width:520px) {
  .foco-shared-form :is(.foco-context-fields,.foco-contact-grid) { grid-template-columns:1fr; }
  .foco-shared-form[data-layout=line] header { padding:18px 18px 12px; }
  .foco-shared-form[data-layout=line] ol { padding:0 18px; }
  .foco-shared-form[data-layout=line] .foco-form-body { padding:12px 18px 30px; }
  .foco-shared-form[data-layout=line] h1 { font-size:24px; }
  .foco-shared-form[data-layout=line] .foco-ai-message { margin-right:10px; }
}
@media(prefers-reduced-motion:reduce) { .foco-shared-form * { scroll-behavior:auto!important; } }

/* The original trade assistant tag remains a small label, with the agreed copy; 13px from 3 Nov 2026 (Paul: "it looks a
   little bit too small on a desktop", option 1 "I don't want it over powering"), was 10px; no extra letter spacing (Paul, 3 Nov:
   "is the optional ai assistant in a different font to everything else? looks a bit off"). */
.foco-shared-form:not([data-layout=line]) .foco-ai-choice h3,
.foco-shared-form:not([data-layout=line]) .foco-ai-message strong { display:block; margin:0; font-size:13px; font-weight:700; line-height:1.6; letter-spacing:0; color:var(--foco-accent); }
.foco-shared-form .foco-form-contact label span { font-weight:400; }
.foco-shared-form:not([data-layout=line]) .foco-form-contact h3 { font-size:18px; line-height:1.3; margin:22px 0 2px; }
@media(max-width:1000px) { .foco-shared-form:not([data-layout=line]) .foco-form-contact h3 { font-size:17px; margin-bottom:4px; } }

.foco-shared-form:not([data-layout=line]) select { border-color:#a9bcae; border-radius:12px; background:#fffefa; }
@media (min-width:641px) and (max-width:1000px) {
 .foco-shared-form:not([data-layout=line]) :is(label,.foco-work-choice,.foco-work-selector legend,.foco-flow-actions button) { font-size:14px; }
 .foco-shared-form:not([data-layout=line]) button { font-size:16px; }
 .foco-shared-form:not([data-layout=line]) ol button { font-size:12px; }
}

.foco-shared-form:not([data-layout=line]) ol li button.foco-progress-button { font:inherit; }

/* Original TECHPOINT contact rows and photo controls. */
.foco-shared-form[data-layout=line] .foco-form-photos,
.foco-shared-form[data-layout=line] .foco-form-contact { margin:0; }
.foco-shared-form[data-layout=line] .foco-form-contact > h3 { display:none; }
.foco-shared-form[data-layout=line] .foco-contact-field:has(input[name=email]),
.foco-shared-form[data-layout=line] .foco-contact-field:has(input[name=callback]) { grid-column:1/-1; }
.foco-shared-form[data-layout=line] .foco-photo-actions button { background:var(--foco-primary); border-color:var(--foco-accent); color:var(--foco-it-on-primary); }
.foco-shared-form[data-layout=line] .foco-form-photos h3 span { font-weight:400; }

.foco-business-logo { width:auto; max-width:140px; max-height:56px; object-fit:contain; flex:none; }
.foco-shared-form[data-branded][data-trade] { font-family:var(--foco-font); background:var(--foco-paper); color:var(--foco-ink); }
.foco-shared-form[data-branded][data-trade] :is(button,input,select,textarea) { font-family:var(--foco-font); }
.foco-shared-form[data-branded][data-trade] :is(header,.foco-form-body,fieldset,input,select,textarea,.foco-work-choice) { background:var(--foco-paper); color:var(--foco-ink); }
.foco-shared-form[data-branded][data-trade] :is(h1,h2,h3,label,legend,.foco-form-help,header p,.foco-selected-context) { color:var(--foco-ink); }
.foco-shared-form[data-branded][data-trade] button.foco-primary { background:var(--foco-primary); border-color:var(--foco-primary); color:var(--foco-primary-text); }
/* The "Return to {company}" link after sending is a button too: its words in the button's text colour, not the link colour
   (Paul, 2 Nov 2026: the words vanished on Foco AI's form, green on green). */
.foco-shared-form[data-branded][data-trade] a.foco-primary { background:var(--foco-primary); border-color:var(--foco-primary); color:var(--foco-primary-text); }
.foco-shared-form[data-branded][data-trade] :is(a,.foco-step-count) { color:var(--foco-accent); }
.foco-shared-form[data-branded][data-trade] :is(.foco-step-count,ol li) { background:var(--foco-paper); color:var(--foco-ink); }
.foco-shared-form[data-branded][data-trade] .foco-work-choice:has(input:checked) { border-color:var(--foco-accent); outline:1px solid var(--foco-accent); }
/* IT marks the current step with its underline only, as TECHPOINT does (branded IT block at the end). */
.foco-shared-form[data-branded]:not([data-layout=line]) ol [aria-current=step] { border-color:var(--foco-accent); outline:1px solid var(--foco-accent); }
.foco-shared-form[data-branded][data-trade] .foco-work-choice input { accent-color:var(--foco-accent); }
.foco-shared-form[data-branded][data-trade] .foco-safety { background:#fff5e8; color:#3b220c; }

.foco-shared-form header strong { overflow-wrap:anywhere; }
.foco-shared-form[data-branded][data-trade] .foco-safety :is(h2,p,a) { color:#3b220c; }
.foco-shared-form[data-branded][data-trade] .foco-safety a { text-decoration:underline; }

.foco-shared-form[data-branded][data-trade] * { font-family:var(--foco-font); }
.foco-shared-form[data-branded][data-trade] :is(.foco-form-photos,.foco-ai-choice,.foco-ai-message) { background:var(--foco-paper); color:var(--foco-ink); border-color:var(--foco-accent); }
.foco-shared-form[data-branded][data-trade] :is(p,.foco-photo-count,.foco-form-photos p,.foco-form-work-fields p) { color:var(--foco-ink); }
.foco-shared-form[data-branded][data-trade] .foco-safety :is(h2,p,a) { color:#3b220c; }
.foco-shared-form[data-branded][data-trade] * { color:inherit; }
/* Errors keep their red on branded forms (full review intake 9). */
.foco-shared-form[data-branded][data-trade] .foco-form-body .foco-flow-error { color:#912e20; }
.foco-shared-form[data-branded][data-trade] .foco-form-body .foco-photo-error { color:#a33434; }
.foco-shared-form[data-branded][data-trade] .foco-progress-number { background:var(--foco-primary); color:var(--foco-primary-text); }
/* Company-coloured forms of every trade but IT keep the demo's soft step boxes in their own colours, never the solid
   band the rule above draws (that rule, from 8 Oct, is only ever seen on IT, which overrides it below). Paul, 2 Nov 2026. */
.foco-shared-form[data-branded][data-trade]:not([data-layout=line]) ol li { background:var(--foco-step-rest); border-color:var(--foco-step-rest-line); color:var(--foco-step-muted); }
.foco-shared-form[data-branded][data-trade]:not([data-layout=line]) ol [aria-current=step] { background:var(--foco-step-current); border-color:var(--foco-step-current-line); outline:0; color:var(--foco-step-text); }
.foco-shared-form[data-branded][data-trade]:not([data-layout=line]) ol .foco-step-done { background:var(--foco-step-done); border-color:var(--foco-step-done-line); color:var(--foco-step-text); }
.foco-shared-form[data-branded][data-trade]:not([data-layout=line]) .foco-progress-number { background:transparent; color:inherit; }
.foco-shared-form[data-branded][data-trade] :is(input,textarea)::placeholder { color:var(--foco-ink); opacity:.72; }


/* A quiet focus border and shared field rhythm match the existing form. */
.foco-shared-form .foco-form-work-fields > div + div { margin-top:18px; }
.foco-shared-form .foco-form-work-fields .foco-work-selector legend { margin-top:0; }
.foco-shared-form :is(input,textarea,select):focus-visible { outline:0; border-color:#555; box-shadow:0 0 0 1px #555; }
.foco-shared-form :is(button,summary,a):focus-visible { outline:2px solid var(--foco-accent); outline-offset:2px; }
.foco-answer-actions { display:grid; gap:10px; margin:14px 0 20px; }
.foco-answer-row { display:flex; gap:10px; }
.foco-answer-row .foco-primary { flex:1; }
.foco-answer-actions > button { width:100%; }
.foco-shared-form[data-layout=line] .foco-answer-actions > button { background:#666366; border-color:#666366; color:#fff; }
.foco-shared-form .foco-edit-answer { min-height:36px; padding:6px 10px; font-size:14px; margin-bottom:12px; }
.foco-shared-form[data-layout=line] :is(input,textarea,select):focus-visible { outline:0; }
.foco-shared-form .foco-work-selector select:focus-visible { outline:0; }

/* Placeholder labels and active dependent selectors keep the same gap. */
.foco-shared-form[data-trade] .foco-form-work-fields > div > label:first-child { margin-top:0; }
.foco-shared-form .foco-form-work-fields .foco-work-selector { margin-bottom:0; }


/* Typing prioritises the active field; actions must not cover it. */
.foco-shared-form[data-keyboard-open] :is(.foco-answer-actions,.foco-choice-actions,.foco-form-actions) { position:static; box-shadow:none; }
.foco-shared-form[data-keyboard-open] textarea { max-height:var(--foco-keyboard-field-height); min-height:70px; }

/* Shared final-step styling follows each company's configured palette. */
.foco-shared-form[data-trade] .foco-photo-actions button:last-child { background:var(--foco-accent); border-color:var(--foco-accent); color:var(--foco-paper); }
.foco-shared-form[data-layout=line] .foco-photo-actions button:last-child { background:#666366; border-color:#666366; color:#fff; }
.foco-shared-form[data-branded][data-trade] .foco-photo-actions button:last-child { background:var(--foco-ink); border-color:var(--foco-ink); color:var(--foco-paper); }
.foco-shared-form .foco-send-agreement { margin:18px 0 0; }
.foco-shared-form[data-trade] .foco-urgent { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 12px; }
.foco-shared-form[data-trade] .foco-urgent a.foco-urgent-call { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 10px; text-decoration:none; color:var(--foco-accent); border-radius:8px; }
.foco-urgent-call svg { width:18px; height:18px; flex:none; }
.foco-shared-form .foco-ai-thinking { display:flex; gap:6px; margin:12px 0 4px; }
.foco-ai-thinking span { width:7px; height:7px; border-radius:50%; background:var(--foco-accent); animation:foco-thinking 1.2s ease-in-out infinite; }
.foco-ai-thinking span:nth-child(2) { animation-delay:.15s; }
.foco-ai-thinking span:nth-child(3) { animation-delay:.3s; }
@keyframes foco-thinking { 0%,80%,100% { opacity:.3; transform:translateY(0); } 40% { opacity:1; transform:translateY(-3px); } }
@media(prefers-reduced-motion:reduce) { .foco-ai-thinking span { animation:none; opacity:.7; } }

/* Agreed parity batch: original spacing and grouping, retained action order. */
.foco-shared-form[data-layout=line] { border:0; border-radius:0; overflow:visible; }
.foco-shared-form[data-layout=line] header { padding:0 0 12px; }
.foco-shared-form[data-layout=line] ol { padding:0; margin:0 0 10px; }
.foco-shared-form[data-layout=line] .foco-form-body { padding:0 0 20px; }
.foco-reply-box { border:2px solid var(--foco-accent); border-radius:10px; background:var(--foco-paper); padding:14px; margin:12px 0 18px; }
.foco-shared-form[data-layout=line] .foco-reply-box { background:var(--foco-it-soft); }
.foco-shared-form .foco-reply-box > label { margin:0 0 8px; font-size:18px; }
.foco-reply-box .foco-answer-actions { margin:12px 0 0; }
.foco-history-message { border-radius:8px; padding:14px 16px; background:#f5f5f5; margin-bottom:12px; overflow-wrap:anywhere; }
.foco-shared-form .foco-history-message strong { display:block; font-size:14px; font-weight:700; color:var(--foco-muted); margin-bottom:4px; }
.foco-shared-form .foco-history-message p { margin:0; white-space:pre-wrap; }
.foco-history-user { background:#fff3e8; margin-left:20px; }
.foco-history-assistant { margin-right:20px; }
.foco-shared-form[data-branded] .foco-history-message { background:var(--foco-paper); color:var(--foco-ink); border-left:3px solid var(--foco-accent); }
.foco-shared-form[data-layout=line] .foco-form-photos { margin-bottom:0; }
.foco-shared-form[data-layout=line] .foco-form-photos p { font-size:14px; line-height:1.5; }
.foco-shared-form[data-layout=line] .foco-photo-previews { gap:24px; margin-top:12px; }
.foco-shared-form .foco-photo-previews button { right:-25px; top:-25px; display:grid; place-items:center; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:0; background:transparent; box-shadow:none; }
.foco-photo-previews button span { display:grid; place-items:center; width:22px; height:22px; border-radius:5px; background:#fff; color:#555; border:1px solid #ddd; font:400 20px/1 Arial,Helvetica,sans-serif; box-shadow:0 1px 3px #0002; }
.foco-shared-form .foco-received { padding:28px 0; text-align:center; }
.foco-success-mark { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 16px; border-radius:50%; color:var(--foco-accent); background:var(--foco-paper); border:2px solid var(--foco-accent); font-size:28px; }
.foco-shared-form .foco-received h1 { margin:0 0 12px; }
.foco-shared-form .foco-received p { max-width:520px; margin:0 auto 24px; }
.foco-shared-form .foco-return-link { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 18px; border-radius:8px; border:1px solid var(--foco-accent); background:var(--foco-primary); color:var(--foco-primary-text,var(--foco-ink)); font-weight:700; text-decoration:none; }
@media(max-width:520px) { .foco-history-user { margin-left:10px; } .foco-history-assistant { margin-right:10px; } }

/* Keep Back with the initial AI action, matching the existing reply row. */
.foco-choice-actions { display:grid; gap:10px; }
.foco-choice-row { display:flex; gap:10px; }
.foco-shared-form .foco-choice-row > button { width:auto; margin:0; }
.foco-choice-row .foco-primary { flex:1; }
.foco-shared-form .foco-choice-actions > button { margin:0; }
.foco-shared-form .foco-ai-choice .foco-ai-consent { margin-top:14px; }
.foco-supported-files { margin:12px 0; }
.foco-supported-files summary { cursor:pointer; padding:8px 0; color:var(--foco-muted); }
.foco-screen-reader-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px!important; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

.foco-shared-form[data-layout=line] .foco-choice-row > button:not(.foco-primary) { background:var(--foco-paper); border-color:#aaa; color:var(--foco-muted); }

/* A branded IT form keeps TECHPOINT's layout in the business's colours (1.1.133): its main colour where TECHPOINT has the
   strong orange, and tints of it (applyBranding in branding.mjs) where TECHPOINT has the light orange. The general branded
   rules above would otherwise fill every step number, box the current step and whiten the assistant panel. Only forms with
   branding match these rules, so TECHPOINT (no branding) is unchanged. */
.foco-shared-form[data-branded][data-layout=line] .foco-brand-text p { color:var(--foco-accent); }
.foco-shared-form[data-branded][data-layout=line] ol li .foco-progress-number { background:var(--foco-it-step); color:inherit; }
.foco-shared-form[data-branded][data-layout=line] ol .foco-step-done .foco-progress-number { background:var(--foco-it-done-number); color:inherit; }
.foco-shared-form[data-branded][data-layout=line] ol [aria-current=step] .foco-progress-number { background:var(--foco-primary); color:var(--foco-primary-text); }
.foco-shared-form[data-branded][data-layout=line] .foco-form-body .foco-ai-choice { background:var(--foco-it-soft); }
/* TECHPOINT's grey "Continue without AI": a branded form uses its own text colour on its background colour (8 Nov 2026). */
.foco-shared-form[data-branded][data-layout=line] .foco-ai-choice button:not(.foco-primary) { background:var(--foco-ink); border-color:var(--foco-ink); color:var(--foco-paper); }
.foco-shared-form[data-branded][data-layout=line] .foco-form-body :is(.foco-ai-message,.foco-form-photos) { background:var(--foco-it-panel); }
.foco-shared-form[data-branded][data-layout=line] .foco-history-message { background:var(--foco-it-history); border-left:0; }
.foco-shared-form[data-branded][data-layout=line] .foco-history-message.foco-history-user { background:var(--foco-it-user); }
/* TECHPOINT's white fields are its background colour, so a branded IT form's fields take the business's background. */
.foco-shared-form[data-branded][data-layout=line] .foco-form-body :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) { background:var(--foco-paper); }

/* Round numbers (Line) became the default for every trade (Paul, 8 Nov 2026: "I think it should be the default").
   1. A company-coloured form gets its own rounded panel and padding, as the Boxes look has, because outside TECHPOINT's own
      page nothing else frames it. TECHPOINT has no company colours set, so its form is unchanged. */
.foco-shared-form[data-branded][data-layout=line] { border:1px solid var(--foco-step-rest-line); border-radius:16px; overflow:hidden; background:var(--foco-paper); padding:24px 24px 4px; }
@media(max-width:560px) { .foco-shared-form[data-branded][data-layout=line] { padding:16px 14px 2px; } .foco-shared-form[data-branded][data-layout=line] .foco-progress-label { font-size:13px; line-height:1.3; } }
/* 2. Topic buttons read as buttons, like the demo's: a light shade, bold words, the + in the company's colour, a clear
      selected state, 56px tall (above the 48px thumb size). TECHPOINT shows a drop-down, not these. */
.foco-shared-form[data-layout=line] .foco-form-work-fields label.foco-work-choice { min-height:56px; padding:12px 14px; font-weight:600; background:#f7f7f7; border-color:#e3e3e3; }
.foco-shared-form[data-layout=line] .foco-form-work-fields label.foco-work-choice span { font-size:16px; font-weight:600; line-height:1.35; }
@media(max-width:560px) { .foco-shared-form[data-layout=line] .foco-form-work-fields label.foco-work-choice { padding:10px 12px; } .foco-shared-form[data-layout=line] .foco-form-work-fields label.foco-work-choice span { font-size:15px; } }
.foco-shared-form[data-branded][data-layout=line] .foco-form-work-fields label.foco-work-choice { background:var(--foco-step-rest); border-color:var(--foco-step-rest-line); color:var(--foco-ink); }
.foco-shared-form[data-branded][data-layout=line] .foco-form-work-fields label.foco-work-choice:has(input:checked) { background:var(--foco-step-current); border-color:var(--foco-accent); outline:1px solid var(--foco-accent); }
.foco-shared-form[data-layout=line] .foco-work-indicator { color:var(--foco-accent); font-weight:700; }
/* 3. Foco AI's own form (and forms built on it) asks "How can we help?" as its heading, so the group's own question
      "What can we help with?" is kept for screen readers only, not shown twice. */
.foco-shared-form[data-trade=foco] .foco-work-selector > legend { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
/* A private preview's "What happens next with Foco" on the finished page (preview-forms.mjs, 9 Nov 2026). */
.foco-shared-form .foco-preview-next { margin-top:24px; padding:16px 20px; border-radius:12px; background:color-mix(in srgb, var(--foco-accent) 6%, white); }
.foco-shared-form .foco-preview-next h3 { margin:0 0 8px; font-size:17px; }
.foco-shared-form .foco-preview-next ul { margin:0; padding-left:20px; }
.foco-shared-form .foco-preview-next li { margin:6px 0; line-height:1.5; }
.foco-shared-form .foco-consent { margin-top:18px; }
/* A form's own extra questions (form-extras.mjs) look like its topic boxes and keep their question visible. */
.foco-shared-form[data-trade] .foco-form-extra .foco-work-selector > legend { position:static; width:auto; height:auto; margin:22px 0 7px; overflow:visible; clip-path:none; white-space:normal; font-size:16px; font-weight:700; }
.foco-shared-form[data-layout=line] .foco-form-extra label.foco-work-choice { margin:0; min-height:56px; padding:12px 14px; font-weight:600; background:#f7f7f7; border-color:#e3e3e3; }
.foco-shared-form[data-layout=line] .foco-form-extra label.foco-work-choice span { font-size:16px; font-weight:600; line-height:1.35; }
@media(max-width:560px) { .foco-shared-form[data-layout=line] .foco-form-extra label.foco-work-choice { padding:10px 12px; } .foco-shared-form[data-layout=line] .foco-form-extra label.foco-work-choice span { font-size:15px; } }
.foco-shared-form[data-branded][data-layout=line] .foco-form-extra label.foco-work-choice { background:var(--foco-step-rest); border-color:var(--foco-step-rest-line); color:var(--foco-ink); }
.foco-shared-form[data-branded][data-layout=line] .foco-form-extra label.foco-work-choice:has(input:checked) { background:var(--foco-step-current); border-color:var(--foco-accent); outline:1px solid var(--foco-accent); }
.foco-shared-form .foco-preview-next { margin-bottom:20px; }
/* David's preview (9 Nov 2026): "Which best describes you?" comes first, so the topic question is shown, not hidden;
   an individual client sees no business name box. */
.foco-shared-form[data-preview] .foco-form-extra-start .foco-work-selector > legend { margin-top:0; }
.foco-shared-form[data-preview][data-trade=foco] .foco-form-work-fields .foco-work-selector > legend { position:static; width:auto; height:auto; margin:22px 0 7px; overflow:visible; clip-path:none; white-space:normal; font-size:16px; font-weight:700; }
.foco-shared-form[data-no-business] .foco-work-secondary { display:none; }
.foco-shared-form .foco-form-extra-start { margin-bottom:22px; }
.foco-shared-form .foco-preview-tag { margin-left:10px; font-size:13px; font-weight:400; color:var(--foco-muted); white-space:nowrap; }
.foco-shared-form .foco-preview-firm { white-space:nowrap; margin-right:10px; }
.foco-shared-form .foco-preview-tag { display:inline-block; margin-left:0; }
/* A preview's "Start again" beside its note (9 Nov 2026): a quiet text link, not a button shape. */
.foco-shared-form button.foco-preview-restart { margin-left:12px; padding:0; min-height:0; border:0; background:none; color:var(--foco-ink); font:inherit; font-size:13px; font-weight:600; text-decoration:underline; cursor:pointer; }
