/* leads feature styles (loaded after app.css): contact section, enquiry form, mobile action bar. */

/* ---------- Contact section ---------- */
.ct-title { font-size: clamp(26px, 3vw, 40px); font-weight: 300; }
.ct-lede { margin-top: 10px; }
.ct-trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.ct-trust li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--r-btn); background: var(--ash); color: var(--graphite); font-size: 13px; font-weight: 600; }
.ct-trust li i { font-size: 16px; color: var(--pewter); }

.ct-agents { display: grid; gap: 4px; margin-top: 28px; }
.ct-agent { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 4px; }
.ct-agent .av { width: 48px; height: 48px; border-radius: 50%; background: var(--ash-2); display: grid; place-items: center; overflow: hidden; color: var(--carbon); font-weight: 600; }
.ct-agent .av img { width: 100%; height: 100%; object-fit: cover; }
.ct-agent .n { font-size: 15px; font-weight: 600; color: var(--carbon); }
.ct-agent .r { margin: 2px 0 0; font-size: 13px; color: var(--pewter); }
.ct-agent .ct-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-agent .icon-btn { background: var(--ash); }
.ct-agent .icon-btn:hover { background: var(--ash-2); }

.ct-agent.lead { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; padding: 20px; border-radius: var(--r-card); background: var(--ash); }
.ct-agent.lead .av { width: 96px; height: 96px; font-size: 26px; background: var(--ash-2); }
.ct-agent.lead .ct-kicker { display: block; font-size: 13px; color: var(--pewter); }
.ct-agent.lead .n { margin-top: 4px; font-size: 22px; font-weight: 300; }
.ct-agent.lead .r { font-size: 14px; }
.ct-agent.lead .ct-actions { margin-top: 16px; gap: 8px; }
.ct-agent.lead .btn { background: var(--canvas); }
.ct-agent.lead .btn:hover { background: var(--ash-2); }

.ct-promise, .ct-office { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; }
.ct-promise { margin-top: 20px; color: var(--carbon); font-weight: 600; }
.ct-office { margin-top: 10px; color: var(--pewter); }
.ct-promise i, .ct-office i { font-size: 18px; flex: none; margin-top: 1px; color: var(--pewter); }
.ct-office span { display: inline; }
.ct-office .link { margin-right: 10px; overflow-wrap: anywhere; }
.ct-office .link:last-child { margin-right: 0; }

.ct-sub { font-size: 17px; margin-top: 40px; }
.ct-sub-p { margin: 6px 0 0; font-size: 14px; }

@media (max-width: 480px) {
  .ct-agent.lead { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .ct-agent.lead .av { width: 64px; height: 64px; font-size: 20px; }
  .ct-agent.lead .n { font-size: 20px; }
  .ct-agent.lead .ct-actions { margin-top: 12px; }
  .ct-agent.lead .ct-actions .btn { flex: 1 1 auto; padding: 0 14px; }
}

/* ---------- Enquiry form ---------- */
.ct-form-head h3 { font-size: 22px; font-weight: 300; }
.ct-form-head .fine { margin: 6px 0 0; font-size: 13px; color: var(--pewter); }
.ct-form-foot { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 6px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; }

/* Ask a question / Book an inspection */
.ct-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 8px; background: var(--ash-2); }
.ct-seg label { position: relative; display: block; cursor: pointer; }
.ct-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: var(--r-btn); color: var(--pewter); font-size: 14px; font-weight: 600; text-align: center; transition: background-color var(--t), color var(--t); }
.ct-seg span i { font-size: 17px; }
.ct-seg label:hover span { color: var(--carbon); }
/* Spam trap, off screen rather than display:none so bots still fill it in. */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* APP 5 collection notice. Collapsed by default so it does not bury the form,
   but it sits above the consent boxes and is open-able before anyone ticks one. */
.ct-notice { margin: 4px 0 2px; padding: 10px 14px; border-radius: var(--r-card); background: var(--ash); }
.ct-notice > summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--carbon); list-style: none; }
.ct-notice > summary::-webkit-details-marker { display: none; }
.ct-notice > summary::after { content: " +"; color: var(--pewter); }
.ct-notice[open] > summary::after { content: " \2212"; }
.ct-notice > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.ct-notice p { margin: 8px 0 2px; }

.ct-seg input:checked + span { background: var(--canvas); color: var(--carbon); }
.ct-seg input:checked + span i { color: var(--accent); }
.ct-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 400px) {
  .ct-seg span { font-size: 13px; padding: 0 6px; gap: 6px; }
  .ct-seg span i { display: none; }
}
.ct-inspect { display: grid; gap: 8px; }
.ct-inspect .fine { margin: 0; }

/* Unit picks (preselected from the shortlist) */
.ct-units .label { display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 6px; }
.ct-units-n { font-weight: 400; color: var(--pewter); }
.ct-units-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-unit { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-btn); background: var(--canvas); font-size: 13px; font-weight: 600; color: var(--carbon); cursor: pointer; transition: color var(--t), background-color var(--t); }
.ct-unit input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.ct-unit small { font-size: 12px; font-weight: 400; color: var(--pewter); }
.ct-unit:has(input:not(:checked)) { color: var(--fog); background: transparent; }
.ct-units-empty { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13px; color: var(--pewter); }
.ct-units-empty i { font-size: 16px; margin-top: 1px; }

/* Success + what happens next */
.ct-done { display: grid; gap: 8px; padding: 20px 0 4px; outline: none; }
.ct-done-ic { font-size: 32px; line-height: 1; color: var(--accent); }
.ct-done h3 { font-size: 24px; font-weight: 300; }
.ct-done-lead { margin: 0; font-size: 15px; }
.ct-done .fine { margin: 0; font-size: 13px; color: var(--pewter); }
.ct-next-h { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--carbon); }
.ct-next { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 14px; }
.ct-next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.ct-next-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); color: var(--carbon); font-size: 13px; font-weight: 600; }
.modal .ct-next-n { background: var(--ash); }
.ct-next b { display: block; font-size: 14px; font-weight: 600; color: var(--carbon); }
.ct-next li span:not(.ct-next-n) { display: block; margin-top: 2px; font-size: 14px; color: var(--pewter); }
.ct-done > .btn { justify-self: start; margin-top: 4px; }

/* ---------- Mobile sticky action bar (< 760px) ---------- */
.ct-bar { display: none; }
@media (max-width: 759.98px) {
  .ct-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(252, 252, 251, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    transform: translateY(110%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .ct-bar.solo { grid-template-columns: 1fr; }
  .ct-bar.show { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .ct-bar .btn { width: 100%; min-height: 46px; padding: 0 12px; font-weight: 600; }
  .ct-bar .btn:not(.accent) { background: var(--ash); }
  .ct-bar .btn:not(.accent):hover { background: var(--ash-2); }

  /* Keep the page end and transient UI clear of the bar. */
  body.has-ct-bar .footer { padding-bottom: calc(40px + 66px + env(safe-area-inset-bottom, 0px)); }
  body.ct-bar-on .toast { bottom: calc(24px + 66px + env(safe-area-inset-bottom, 0px)); }
  body.present .ct-bar, body.menu-open .ct-bar { display: none; }
}
/* ---------- Floating enquire pill (>= 760px) ---------- */
/* Same component and the same observer as the mobile bar, so the two can never
   both appear. The pill is an anchor to #contact: native scrolling, no modal. */
.ct-pill { display: none; }
@media (min-width: 760px) {
  .ct-bar {
    position: fixed; left: auto; right: clamp(16px, 2.4vw, 32px);
    bottom: clamp(16px, 2.4vw, 32px); z-index: 45;
    display: block; padding: 0; background: none;
    transform: translateY(calc(100% + 40px)); visibility: hidden; opacity: 0;
    transition: transform .4s var(--ease), opacity .3s var(--ease), visibility 0s linear .4s;
  }
  .ct-bar.show { transform: none; visibility: visible; opacity: 1; transition: transform .4s var(--ease), opacity .3s var(--ease), visibility 0s; }
  /* The bar's own buttons are the phone-sized presentation. */
  .ct-bar > .btn:not(.ct-pill) { display: none; }
  .ct-pill {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .ct-pill i { font-size: 18px; }
  body.present .ct-bar, body.menu-open .ct-bar { display: none; }
  /* Keep toasts clear of the pill. */
  body.ct-bar-on .toast { bottom: calc(24px + 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .ct-bar, .ct-bar.show { transition: none; }
}
@media print { .ct-bar { display: none !important; } }
.ft-links .link { margin-left: 12px; font-size: 12px; }
