/* Florist coverage checker (23 Oct 2026), prototype. Shared by the register page option F and the Join page Enquire Now slide-down (coverage.js).
   Rethink Sans, 16px minimum, yellow only on things you tap, soft yellow panel like the Join page, D2F yellow ticks.
   Map pins copy the town results page's round shop-photo pins (results_variants.css .rvp), renamed .cvp so the two never clash. */
.cv { --cv-yellow-soft: #fff6d6; --cv-grey: #f6f5f2; --cv-pink: #e77c96; position: relative; }
.cv .cv-ask__h, .cv .cv-res__h { color: var(--d2f-heading); }

/* ---------- the question */
.cv-ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.cv--panel .cv-ask { padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--cv-yellow-soft); }
.cv--panel .cv-ask:has(.cv-photo) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.cv-ask__eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #3c4f45; font-weight: var(--d2f-w-semibold); }
.cv-ask__eyebrow img { width: 18px; height: 18px; }
.cv .cv-ask__h { margin: 0 0 24px; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: var(--d2f-track-tight, -.01em); }
.cv--plain .cv-ask__h { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 20px; }
.cv-form { position: relative; margin: 0; max-width: 620px; }
.cv-form label { display: block; margin: 0 0 8px; color: var(--d2f-heading); font-weight: var(--d2f-w-semibold); }
/* D2F field + button, as the site search and the register form: separate white field (1px soft grey, 8px), yellow button beside it, no box around both */
.cv-row { display: flex; gap: 12px; }
.cv-input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--d2f-border-strong, #e6e7ea); border-radius: 8px; background: #fff;
  color: var(--d2f-heading); font: inherit; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.cv-input::placeholder { color: var(--d2f-text-placeholder, #6e6f8b); }
.cv-input:hover { border-color: var(--d2f-palette-ink-300, #a8a8b6); }
.cv-input:focus { outline: none; border-color: var(--d2f-heading); box-shadow: var(--d2f-focus, 0 0 0 3px rgba(35,35,61,.18)); }
.cv.is-err .cv-input { border-color: var(--d2f-color-error, #c93c3c); }
.cv-submit { position: relative; flex: 0 0 auto; min-width: 176px; height: 52px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 8px;
  background: var(--d2f-palette-yellow-500, #ffd86e); color: var(--d2f-heading); font-size: 16px; font-weight: var(--d2f-w-semibold); }
.cv-submit:hover { background: var(--d2f-palette-yellow-600, #f9ce58); }
.cv-submit.is-busy { color: transparent !important; pointer-events: none; }
.cv-submit.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2.5px solid var(--d2f-heading);
  border-right-color: transparent; border-radius: 50%; animation: cv-spin .7s linear infinite; }
.cv-err { margin: 10px 0 0; color: var(--d2f-color-error, #c93c3c); line-height: 1.45; }
.cv-err[hidden] { display: none; }
.cv-err b { color: var(--d2f-heading); }
.cv-link { display: inline; padding: 0; border: 0; background: none; color: var(--d2f-heading); font: inherit; font-weight: var(--d2f-w-semibold);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cv-help { margin: 8px 0 0; }
.cv-help .cv-link { display: inline-flex; align-items: center; min-height: 44px; }
.cv-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1001; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--d2f-border);
  border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(43,44,58,.14); }
.cv-list[hidden] { display: none; }
.cv-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.cv-list li strong { color: var(--d2f-heading); font-weight: var(--d2f-w-semibold); }
.cv-list li span { color: var(--d2f-text-muted); font-size: var(--d2f-fs-small); white-space: nowrap; }
.cv-list li:hover, .cv-list li[aria-selected="true"] { background: var(--cv-grey); }
.cv-photo { margin: 0; border-radius: 20px; overflow: hidden; }
.cv-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- the answer: map + one heading, one sentence, one button */
.cv-out { margin-top: 20px; scroll-margin-top: 16px; }
.cv-out[hidden] { display: none; }
.cv-res { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: 12px;
  border: 1px solid var(--d2f-border); border-radius: 24px; background: #fff; box-shadow: 0 14px 40px rgba(20,20,35,.06); animation: cv-in .35s cubic-bezier(.2,.8,.2,1) both; }
.cv--plain .cv-res { box-shadow: none; }
.cv-res--nomap { grid-template-columns: minmax(0, 1fr); padding: clamp(20px, 3vw, 36px); }
.cv-res__text { min-width: 0; padding: 12px clamp(8px, 2vw, 24px) 12px 0; }
.cv-res--nomap .cv-res__text { padding: 0; }
.cv .cv-res__h { margin: 0 0 10px; font-size: var(--d2f-fs-h3, 1.5rem); line-height: 1.2; outline: none; }
.cv-res__p { margin: 0 0 24px; max-width: 520px; color: var(--d2f-text); line-height: 1.55; }
.cv-res__p b { color: var(--d2f-heading); font-weight: var(--d2f-w-semibold); }
.cv-go { min-width: 260px; min-height: 52px; border-radius: 8px; font-size: 16px; font-weight: var(--d2f-w-semibold); }
.cv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 12px 0 0; }
.cv-foot .cv-link { display: inline-flex; align-items: center; min-height: 44px; }
.cv-call { display: inline-flex; align-items: center; min-height: 44px; color: var(--d2f-text-muted); text-decoration: none; }
.cv-call b { margin-left: .3em; color: var(--d2f-heading); font-weight: var(--d2f-w-semibold); }
.cv-call:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cv-debug { margin: 16px 0 0; padding: 10px; border-radius: 8px; background: var(--cv-grey); font: 13px/1.4 ui-monospace, monospace; overflow-wrap: anywhere; }

/* area open: green success circle with a tick (Nilesh 23 Oct) */
.cv-ok { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 16px; border-radius: 50%; background: var(--d2f-color-success, #007b2e);
  box-shadow: 0 0 0 6px var(--d2f-color-success-soft, #e8f7e8); animation: cv-okin .45s cubic-bezier(.2,.9,.3,1.4) .1s both; }
.cv-ok svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; animation: cv-okdraw .35s ease-out .4s forwards; }
@keyframes cv-okin { from { opacity: 0; transform: scale(.4); } }
@keyframes cv-okdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cv-ok svg { stroke-dashoffset: 0; } }

/* the map: same tiles, zoom buttons and pins as the town results page */
.cv-map { position: relative; z-index: 0; height: 340px; border-radius: 16px; overflow: hidden; background: #eef0ee; }
.cv-map--off::after { content: "Map unavailable"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--d2f-text-muted); }
.cv-map .leaflet-control-zoom { border: 0; box-shadow: 0 4px 14px rgba(35,35,61,.14); border-radius: 12px; overflow: hidden; margin: 0 14px 18px 0; }
.cv-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; color: var(--d2f-heading); }
.cv-map .leaflet-control-attribution { background: rgba(255,255,255,.7); font-size: 10px; }
.cvp-icon { background: none; border: 0; }
.cvp { position: relative; display: block; width: 44px; height: 44px; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1); animation: cv-pop .4s cubic-bezier(.2,.9,.3,1.4) both; animation-delay: calc(.15s + var(--i) * 50ms); }
.cvp__av { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 3px var(--cv-pink), 0 6px 14px rgba(35,35,61,.25); }
.cvp__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cvp__av b { font: 600 16px/1 var(--d2f-font-sans, inherit); color: var(--d2f-heading); }
.cvp__tick { position: absolute; right: -3px; bottom: -2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cvp__pill { position: absolute; left: 50%; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 1px; padding: 7px 12px; border-radius: 10px;
  background: var(--d2f-palette-navy, #23233d); color: #fff; font-size: 14px; line-height: 1.3; white-space: nowrap; text-decoration: none;
  box-shadow: 0 8px 20px rgba(35,35,61,.3); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.cvp__pill strong { font-size: 15px; font-weight: 600; }
/* Leaflet colours every link in the map blue (.leaflet-container a): keep the name white, as on the town results map */
.cv-map .cvp__pill, .cv-map .cvp__pill:hover, .cv-map .cvp__pill:focus, .cv-map .cvp__pill:visited { color: #fff; text-decoration: none; }
.cv-map .cvp__pill strong { color: #fff; }
.cv-map .cvp__pill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cvp__pill span { color: rgba(255,255,255,.85); }
.cvp__pill::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--d2f-palette-navy, #23233d); transform: translateX(-50%) rotate(45deg); }
.cvp:hover, .cvp.is-sel { transform: translateY(-4px) scale(1.12); }
.cvp:hover .cvp__pill, .cvp.is-sel .cvp__pill { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cvp-you { display: block; width: 36px; height: 44px; filter: drop-shadow(0 6px 10px rgba(35,35,61,.3)); }
.cvp-you svg { width: 100%; height: 100%; }
.cvp-you path { fill: var(--d2f-palette-navy, #23233d); stroke: #fff; stroke-width: 2; }
.cvp-you circle { fill: #fff; }

/* loading */
.cv-res--loading { animation: none; }
.cv-map--loading { display: grid; place-items: center; background: linear-gradient(90deg, #eef0ee 25%, #f5f6f5 50%, #eef0ee 75%); background-size: 200% 100%; animation: cv-sh 1.2s linear infinite; }
.cv-pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--d2f-palette-navy, #23233d); box-shadow: 0 0 0 0 rgba(35,35,61,.35); animation: cv-ping 1.4s ease-out infinite; }
.cv-res__checking { margin: 0 0 14px; color: var(--d2f-heading); font-size: var(--d2f-fs-lead); font-weight: var(--d2f-w-semibold); }
.cv-sk { display: block; height: 14px; margin: 10px 0 0; border-radius: 7px; background: linear-gradient(90deg, #efeff2 25%, #f7f7f9 50%, #efeff2 75%); background-size: 200% 100%; animation: cv-sh 1.2s linear infinite; }
.cv-sk--s { width: 70%; }
.cv-sk--b { width: 60%; height: 52px; margin-top: 20px; border-radius: 12px; }

@keyframes cv-spin { to { transform: rotate(360deg); } }
@keyframes cv-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes cv-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes cv-ping { to { box-shadow: 0 0 0 22px rgba(35,35,61,0); } }
@keyframes cv-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cv *, .cv *::after, .cv-slide { animation: none !important; transition: none !important; } }

/* ---------- slide-down in place (D2FCoverage.slideDown) */
.cv-slide { height: 0; overflow: hidden; transition: height .35s cubic-bezier(.2,.8,.2,1); }
.cv-slide.is-open { height: auto; overflow: visible; }
.cv-slide__in { position: relative; padding: 24px 0 8px; }
.cv-slide__x { position: absolute; right: 0; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--d2f-heading); cursor: pointer; }
.cv-slide__x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- tablet */
@media (max-width: 1023px) {
  .cv--panel .cv-ask:has(.cv-photo) { grid-template-columns: minmax(0, 1fr); }
  .cv-photo { display: none; }
  .cv-res { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .cv-res__text { padding: 8px 12px 12px; }
  .cv-map { height: 300px; }
}
/* ---------- phones: 16px gutters, stacked, full-width buttons */
@media (max-width: 767px) {
  .cv--panel .cv-ask { padding: 24px 16px; border-radius: var(--d2f-r-card, 16px); }
  .cv .cv-ask__h, .cv--plain .cv-ask__h { font-size: 1.5rem; line-height: 1.2; margin-bottom: 16px; }
  .cv-row { flex-direction: column; gap: 12px; }
  .cv-submit { width: 100%; min-width: 0; }
  .cv-res { padding: 8px; border-radius: var(--d2f-r-card, 16px); box-shadow: none; }
  .cv-res--nomap { padding: 20px 16px; }
  .cv-res__text { padding: 8px 8px 8px; }
  .cv-res--nomap .cv-res__text { padding: 0; }
  .cv-map { height: 240px; border-radius: 12px; }
  .cv-go { width: 100%; min-width: 0; }
  .cv-foot { flex-direction: column; align-items: center; }
}

/* ---------- 2 Nov (Nilesh "fully accessible like the main one"): clear navy focus rings (the soft 18% ring was under 3:1), the keyboard row
   in the town list marked with a navy line as on the homepage search, 44px map zoom buttons, screen-reader-only hint and status */
.cv-input:focus { border-color: var(--d2f-heading, #23233d); box-shadow: 0 0 0 1px var(--d2f-heading, #23233d); }
.cv-input:focus-visible { outline: 3px solid var(--d2f-heading, #23233d); outline-offset: 2px; }
.cv .cv-submit:focus-visible, .cv .cv-go:focus-visible, .cv .cv-link:focus-visible, .cv .cv-call:focus-visible, .cv-slide__x:focus-visible,
.cv-map .leaflet-control-zoom a:focus-visible, .cv-map .leaflet-marker-icon:focus-visible { outline: 3px solid var(--d2f-heading, #23233d); outline-offset: 2px; box-shadow: none; }
.cv .cv-res__h:focus-visible { outline: none; }
.cv-list.cv-kbd li[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--d2f-heading, #23233d); }
.cv-submit[aria-disabled="true"] { cursor: progress; }
.cv-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.cv-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
