/* Shared components: lead form, side tabs + dialog, quote bar, trust strip, notice bar. */

/* ---------- Lead form (modelled on the Xpressbees sticky enquiry form) ---------- */
.lead { position: relative; font-size: 14px; }
.lead-head { background: #fff; border-radius: 12px; padding: 16px 20px 12px; box-shadow: 0 2px 12px rgba(23, 23, 23, .07); margin-bottom: 18px; }
.lh-top { display: flex; align-items: center; gap: 10px; }
.lh-top b { font-family: var(--h); font-size: 16px; font-weight: 600; color: var(--ink); flex: 1; }
.lh-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.lh-pct { font-family: var(--h); font-weight: 700; font-size: 14px; color: var(--red); }
.lead-bar { height: 6px; border-radius: 6px; background: #EEEAE6; margin: 12px 0 10px; overflow: hidden; }
.lead-bar i { display: block; width: 0; height: 100%; background: var(--red); border-radius: 6px; transition: width .4s ease; }
.lh-msg { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.lead-body { background: #fff; border-radius: 12px; padding: 22px 22px 16px; box-shadow: 0 2px 12px rgba(23, 23, 23, .07); }
.lead fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead-q { font-family: var(--h); font-size: 18px; font-weight: 600; color: var(--ink); padding: 0; margin: 0; }
.lead-sub { font-size: 12.5px; color: var(--muted); margin: 4px 0 18px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 16px 14px; border: 1.5px solid #DDD8D3; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.opt::after { content: ""; position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #CCC5BF; background: #fff; }
.opt:hover { border-color: #D9B3B4; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-ic { width: 38px; height: 38px; border-radius: 8px; background: #F8EEEE; color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.opt-tx { padding-right: 18px; }
.opt-tx b { display: block; font-family: var(--h); font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.opt-tx small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.opt:has(input:checked) { border-color: var(--red); background: #FBF4F4; }
.opt:has(input:checked)::after { border: 5px solid var(--red); }
.opt:has(input:checked) .opt-ic { background: var(--red); color: #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
/* popup: one option per row, as on the Xpressbees enquiry form */
.lead-modal .opts { grid-template-columns: 1fr; gap: 10px; }
.lead-modal .opt { align-items: center; padding: 12px 16px; gap: 14px; }
.lead-modal .opt-ic { width: auto; height: auto; background: none; color: var(--ink); }
.lead-modal .opt:has(input:checked) .opt-ic { background: none; color: var(--red); }
.lead-go { width: 100%; margin-top: 18px; height: 48px; border-radius: 8px; font-size: 15px; box-shadow: none; }
.lead-go:hover { transform: none; }
.lead-back { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.lead-back:hover { color: var(--orange); }
.lead .err { color: #D93025; font-size: 12.5px; margin: 8px 0 0; text-align: left; }
.opts + .err { text-align: center; }
.lead .err:empty { display: none; }
.lead-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #EEE; font-size: 12.5px; color: #1E9E5A; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field[hidden] { display: none; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 44px; width: 100%; border: 1.5px solid #DDD8D3; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #D93025; }
.field .pre { display: flex; }
.field .pre span { display: grid; place-items: center; padding: 0 10px; border: 1.5px solid #DDD8D3; border-right: 0; border-radius: 8px 0 0 8px; background: #F7F5F3; font-size: 13.5px; color: var(--muted); }
.field .pre input { border-radius: 0 8px 8px 0; }
.pin-out { font-size: 12px; color: var(--muted); margin: 0; }
.pin-out:empty { display: none; }
.pin-out.good { color: #1E9E5A; }
.pin-out.bad { color: #D93025; }
.lead .field .lbl { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 7px 13px; border-radius: 6px; border: 1.5px solid #DDD8D3; background: #fff; font-size: 13px; cursor: pointer; }
.chip input:checked + span { border-color: var(--red); background: #FBF4F4; color: var(--red); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.consent input { accent-color: var(--orange); width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ctx { margin: -6px 0 16px; padding: 9px 12px; border-radius: 8px; background: #F2FAF5; border: 1px solid #D3ECDD; font-size: 13px; color: #1D5B3A; }
.btn.busy { opacity: .7; pointer-events: none; }
.lead .done { text-align: center; outline: none; }
.lead .ok { width: 54px; height: 54px; border-radius: 50%; background: #1E9E5A; color: #fff; display: grid; place-items: center; margin: 4px auto 14px; }
.lead .ok svg { width: 24px; height: 24px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 14px 16px; border-radius: 8px; background: #F7F5F3; text-align: left; font-size: 13.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); word-break: break-word; }

/* ---------- Sticky side tabs + enquiry dialog ---------- */
.side-tabs { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 58; display: flex; flex-direction: column; gap: 14px; }
.side-tabs button { writing-mode: vertical-rl; padding: 16px 10px; border: 0; border-radius: 6px 0 0 6px; background: var(--orange); color: #fff; font-family: var(--h); font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: -2px 3px 8px rgba(0, 0, 0, .18); transition: background .15s; }
.side-tabs button:hover { background: var(--orange-600); }
.side-tabs button + button { background: var(--red); }
.side-tabs button + button:hover { background: var(--red-700); }
.side-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lead-modal { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 12px; background: #F4F2F0; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lead-modal[open] { display: flex; flex-direction: column; }
.lead-modal-in { overflow-y: hidden; overscroll-behavior: none; padding: 10px; max-height: calc(100dvh - 32px); }
.lead-modal .lead-head { margin-bottom: 4px; padding: 10px 14px 4px; }
.lead-modal .lead-body { padding: 6px 14px 8px; }
.lead-modal .lead-sub { margin-bottom: 6px; }
.lead-modal::backdrop { background: rgba(0, 0, 0, .55); }
.lead-modal .grid2 { gap: 6px 8px; }
.lead-modal .field { gap: 2px; }
.lead-modal .field input, .lead-modal .field select, .lead-modal .field textarea { height: 32px; padding: 0 8px; font-size: 12.5px; }
.lead-modal .field .pre span { height: 32px; padding: 0 8px; }
.lead-modal .field textarea { height: auto; padding: 4px 8px; }
.lead-modal .ctx { margin: -2px 0 6px; padding: 4px 8px; font-size: 12px; }
.lead-modal .lead-go { margin-top: 8px; height: 38px; font-size: 14px; }
.lead-modal .chips { gap: 4px; }
.lead-modal .chip span { padding: 4px 8px; font-size: 11.5px; }
.lead-modal .consent { margin-top: 8px; gap: 6px; font-size: 11.5px; }
.lead-modal .lead .field .lbl { margin-top: 4px; }
.lead-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--red); background: #fff; color: var(--red); font-size: 17px; line-height: 1; cursor: pointer; z-index: 2; }
.lead-close:hover { background: var(--red); color: #fff; }
html.modal-open { overflow: hidden; }

/* ---------- Quote bar (under the service banner) ---------- */
.qbar { background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(23, 23, 23, .12); overflow: hidden; }
.qtabs { display: flex; border-bottom: 1px solid var(--line); }
.qtabs button { padding: 13px 22px; border: 0; background: none; cursor: pointer; font-family: var(--h); font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.qtabs button[aria-selected=true] { color: var(--red); border-bottom-color: var(--red); }
.qpanel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 18px 22px 20px; }
.qpanel[hidden] { display: none; }
.qf { display: flex; flex-direction: column; gap: 5px; flex: 1 1 180px; min-width: 0; }
.qf.sm { flex: 0 1 130px; }
.qf.grow { flex: 1 1 400px; }
.qf label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.qf input, .qf select { height: 46px; border: 1.5px solid #DDD8D3; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none; width: 100%; }
.qf input:focus, .qf select:focus { border-color: var(--orange); }
.qpanel > .btn { height: 46px; margin-top: 22px; border-radius: 8px; padding: 0 30px; box-shadow: none; }
.qpanel .err { flex-basis: 100%; margin: -4px 0 0; color: #D93025; font-size: 13px; }
.qpanel .err:empty { display: none; }

/* ---------- Trust strip (client logos) ---------- */
.trust { padding: 40px 0 8px; }
.trust p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.logo-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-row .track { display: flex; align-items: center; gap: 56px; width: max-content; animation: logos 40s linear infinite; }
.logo-row:hover .track { animation-play-state: paused; }
.logo-row img { height: 30px; width: auto; mix-blend-mode: multiply; }
@keyframes logos { to { transform: translateX(-50%); } }

/* ---------- Fraud-awareness runner above the header ---------- */
.notice-bar { background: #000; color: #fff; overflow: hidden; height: 34px; display: flex; align-items: center; font-size: 13.5px; }
.notice-track { display: flex; width: max-content; animation: noticeRun 60s linear infinite; }
.notice-bar:hover .notice-track, .notice-bar:focus-within .notice-track { animation-play-state: paused; }
.notice-track span { white-space: nowrap; }
.notice-track b { font-weight: 700; margin-right: 5px; }
.notice-track i { font-style: normal; color: #777; margin: 0 22px; }
.notice-track a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
@keyframes noticeRun { to { transform: translateX(-50%); } }

/* ---------- Mobile: side tabs become a sticky bottom bar ---------- */
@media (max-width: 960px) {
  .side-tabs { top: auto; bottom: 0; left: 0; right: 0; transform: none; flex-direction: row; gap: 1px; background: #fff; padding: 0; box-shadow: 0 -4px 14px rgba(0, 0, 0, .1); }
  .side-tabs button { writing-mode: horizontal-tb; flex: 1; border-radius: 0; padding: 15px 8px calc(15px + env(safe-area-inset-bottom)); font-size: 14px; box-shadow: none; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .grid2, .opts { grid-template-columns: 1fr; }
  .qf.sm { flex: 1 1 100%; }
  .qpanel > .btn { width: 100%; margin-top: 4px; }
  .lead-modal-in { padding: 10px; }
  .lead-modal .lead-body { padding: 10px; }
  .notice-bar { height: 30px; font-size: 12px; }
}
