/* ============== CONTACT PAGE STYLES ==============
   Sits on top of tokens.css + location.css. Coverage map, contact form,
   postcode checker, FAQ. Same cream/walnut/green visual language. */

/* ===== HERO — sibling of /projects/ /collections/ /reviews/ hub heroes ===== */
.ct-hub-hero { padding: clamp(150px, 18vw, 200px) 0 clamp(70px, 8vw, 100px); }
.ct-hub-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 22% 28%, rgba(184, 151, 88, .22) 0%, rgba(184, 151, 88, 0) 55%),
    radial-gradient(ellipse at 80% 78%, rgba(90, 122, 75, .22) 0%, rgba(90, 122, 75, 0) 55%),
    url("/gmb-photos/gmb-044.jpg") center 42%/cover no-repeat,
    var(--ff-walnut);
  background-blend-mode: screen, screen, multiply, normal;
  opacity: .92;
}
.ct-hub-hero .hub-hero-inner { position: relative; z-index: 2; }
.ct-hub-hero h1 em { color: var(--ff-cream); }
.ct-hub-hero-pills {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: 10px 22px;
  margin: 26px auto 0;
  padding: 12px 24px;
  background: rgba(20, 14, 8, .42);
  border: 1px solid rgba(246, 239, 225, .14);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-family: var(--sans);
  font-size: .82rem;
  color: rgba(246, 239, 225, .85);
  letter-spacing: .04em;
}
.ct-hub-hero-pills span { display: inline-flex; align-items: center; gap: 7px; }
.ct-hub-hero-pills span + span::before {
  content: ""; display: inline-block;
  width: 4px; height: 4px; background: var(--ff-gold);
  transform: rotate(45deg);
  margin-right: 6px;
  opacity: .8;
}
.ct-hub-hero-pills strong {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem; color: var(--ff-cream);
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .ct-hub-hero { padding: 130px 0 60px; }
  .ct-hub-hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
  .ct-hub-hero-pills { padding: 12px 18px; border-radius: 22px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .ct-hub-hero-pills span + span::before { display: none; }
}

/* ===== MAIN: form + direct ===== */
.ct-main { padding-top: clamp(56px, 6vw, 90px); padding-bottom: clamp(56px, 6vw, 90px); background-color: var(--ff-paper); background-image: var(--grain-light), var(--paper-fibre-light); background-repeat: repeat, repeat; }
.ct-main-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (min-width: 1100px) {
  .ct-direct { position: sticky; top: 110px; }
}

.ct-form-card,
.ct-direct-card {
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: var(--r-md);
  padding: clamp(26px, 3.5vw, 44px);
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.ct-form-card:hover,
.ct-direct-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.ct-form-card h2,
.ct-direct-card h2 { margin: 10px 0 8px; }
.ct-form-card h2 em,
.ct-direct-card h2 em { font-style: italic; color: var(--ff-green-dark); font-weight: 500; }
.ct-form-lede { color: var(--ff-mute); font-size: .98rem; margin: 0 0 26px; }

/* Form fields */
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field > span {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ff-walnut);
}
.ct-field > span em { color: var(--ff-green); font-style: normal; margin-left: 2px; }
.ct-field input,
.ct-field select,
.ct-field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ff-ink);
  padding: 13px 16px; border: 1px solid var(--ff-line); border-radius: var(--r-sm);
  background: var(--ff-paper); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  width: 100%;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none; border-color: var(--ff-green); background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 122, 75, .15);
}
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-postcode-feedback { font-size: .82rem; min-height: 1.1em; }
.ct-postcode-feedback .is-yes { color: var(--ff-green-dark); font-weight: 600; }
.ct-postcode-feedback .is-yes a { color: var(--ff-green-dark); text-decoration: underline; margin-left: 6px; }
.ct-postcode-feedback .is-maybe { color: var(--ff-gold); font-weight: 500; }

.ct-form-foot { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 6px; }
.ct-submit { align-self: flex-start; }
.ct-submit svg { width: 16px; height: 16px; }
.ct-submit:disabled { opacity: .9; cursor: default; }
.ct-privacy { color: var(--ff-mute); font-size: .8rem; line-height: 1.45; max-width: 52ch; }
.ct-form-fallback { font-size: .88rem; color: var(--ff-mute); }

/* Photo upload field + inline form status */
.ct-field--photos .ct-optional { color: var(--ff-mute); font-style: normal; font-weight: 400; margin-left: 4px; }
.ct-field--photos input[type="file"] {
  padding: 10px 12px;
  font-size: .9rem;
  cursor: pointer;
  background: var(--ff-cream, #f6f2ea);
}
.ct-field--photos input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--ff-green, #3f5c33);
  border-radius: 8px;
  background: #fff;
  color: var(--ff-green-dark, #2f5233);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ct-field--photos input[type="file"]::file-selector-button:hover { background: var(--ff-green, #3f5c33); color: #fff; }
.ct-photo-hint { color: var(--ff-mute); font-size: .8rem; line-height: 1.45; }
.ct-form-status { font-size: .95rem; font-weight: 600; margin: 0; }
.ct-form-fallback a { color: var(--ff-green-dark); text-decoration: underline; }

/* Right column: direct channels */
.ct-direct-card { display: flex; flex-direction: column; gap: 8px; }
.ct-channel {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--ff-line);
  text-decoration: none; transition: background .2s ease;
}
.ct-channel:first-of-type { border-top: 0; padding-top: 4px; }
.ct-channel:hover { background: var(--ff-paper); border-radius: 8px; padding-left: 12px; padding-right: 12px; margin-left: -12px; margin-right: -12px; }
.ct-channel--addr { cursor: default; }
.ct-channel--addr:hover { background: transparent; padding-left: 0; padding-right: 0; margin: 0; }
.ct-channel-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ff-cream); color: var(--ff-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.ct-channel-icon svg { width: 20px; height: 20px; }
.ct-channel-body { display: flex; flex-direction: column; gap: 2px; }
.ct-channel-body small {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--ff-mute); font-weight: 600;
}
.ct-channel-body strong { font-size: 1.08rem; color: var(--ff-walnut); font-weight: 600; }
.ct-channel-body em { font-style: normal; color: var(--ff-mute); font-size: .88rem; }

.ct-trust { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--ff-line); display: flex; flex-direction: column; gap: 10px; }
.ct-trust-row { display: flex; align-items: baseline; gap: 12px; font-size: .92rem; color: var(--ff-mute); }
.ct-trust-row strong { color: var(--ff-walnut); font-size: 1.04rem; font-weight: 700; min-width: 84px; }

/* ===== COVERAGE MAP ===== */
.ct-map-section { background-color: var(--ff-cream); background-image: var(--grain-light), var(--paper-fibre-light); background-repeat: repeat, repeat; padding-top: clamp(60px, 7vw, 100px); padding-bottom: clamp(60px, 7vw, 100px); }
.ct-map-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.ct-map-head .ornament { margin: 12px auto 14px; }
.ct-map-head h2 { margin: 6px 0 16px; }
.ct-map-head h2 em { font-style: italic; color: var(--ff-green-dark); font-weight: 500; }
.ct-map-head .lede { margin: 0 auto; }

.ct-map-wrap {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.ct-map {
  height: clamp(420px, 60vh, 640px);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #e9e2d2;
  z-index: 0;
}
.ct-map-legend {
  position: absolute;
  top: 22px; right: calc(var(--pad-x) + 22px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--ff-line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--ff-walnut);
  box-shadow: var(--shadow-soft);
  z-index: 401;
  display: flex; flex-direction: column; gap: 6px;
  max-width: 220px;
  backdrop-filter: blur(4px);
}
.ct-map-legend-row { display: flex; align-items: center; gap: 8px; }
.ct-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.ct-dot--hq { background: var(--ff-gold); border: 2px solid var(--ff-walnut); width: 14px; height: 14px; }
.ct-dot--town { background: var(--ff-green); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ff-green-dark); }
.ct-band { width: 22px; height: 8px; border-radius: 2px; flex-shrink: 0; border: 1px dashed var(--ff-green-dark); }
.ct-band--20 { background: rgba(90, 122, 75, .18); }
.ct-band--40 { background: rgba(90, 122, 75, .12); }
.ct-band--60 { background: rgba(90, 122, 75, .07); }

/* Leaflet pin styles (DivIcon) */
.ct-pin { background: transparent !important; border: 0 !important; }
.ct-pin-inner {
  display: block; width: 100%; height: 100%; border-radius: 50%;
}
.ct-pin--town .ct-pin-inner {
  background: var(--ff-green);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 0 0 1px var(--ff-green-dark);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ct-pin--town:hover .ct-pin-inner {
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 1px var(--ff-green-dark);
}
.ct-pin--hq .ct-pin-inner {
  background: var(--ff-gold);
  border: 3px solid var(--ff-walnut);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  color: var(--ff-walnut);
  display: inline-flex; align-items: center; justify-content: center;
}
.ct-pin--hq .ct-pin-inner svg { width: 18px; height: 18px; }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper { border-radius: var(--r-sm); box-shadow: var(--shadow-card); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--sans); font-size: .92rem; color: var(--ff-ink); }
.ct-popup { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.ct-popup strong { font-family: var(--serif); font-size: 1.15rem; color: var(--ff-walnut); font-weight: 600; }
.ct-popup span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ff-mute); }
.ct-popup em { font-style: italic; color: var(--ff-gold); font-size: .82rem; margin-top: 4px; }
.ct-popup a {
  margin-top: 8px; color: var(--ff-green-dark); font-weight: 600; font-size: .88rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.ct-popup--hq strong { color: var(--ff-walnut); }

/* ===== POSTCODE CHECK ===== */
.ct-postcode-check { margin-top: 38px; }
.ct-pc-card {
  background: #fff;
  border: 1px solid var(--ff-line);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.ct-pc-copy h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 2vw, 1.7rem); }
.ct-pc-copy h3 em { font-style: italic; color: var(--ff-green-dark); font-weight: 500; }
.ct-pc-copy p { color: var(--ff-mute); margin: 0; font-size: .96rem; }
.ct-pc-form { display: flex; gap: 10px; align-items: stretch; }
.ct-pc-form .ct-field { flex: 1; min-width: 0; }
.ct-pc-form input { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ct-pc-form button { white-space: nowrap; }

.ct-pc-result { grid-column: 1 / -1; margin-top: 6px; }
.ct-pc-result:not(.is-shown) { display: none; }
.ct-pc-result.is-empty { color: var(--ff-mute); font-style: italic; padding: 12px 0; }
.pc-result-yes,
.pc-result-maybe { padding: 22px 24px; border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 10px; }
.pc-result-yes { background: rgba(90, 122, 75, .1); border: 1px solid rgba(90, 122, 75, .3); }
.pc-result-maybe { background: rgba(184, 151, 88, .1); border: 1px solid rgba(184, 151, 88, .4); }
.pc-result-yes strong,
.pc-result-maybe strong { font-family: var(--serif); font-size: 1.25rem; color: var(--ff-walnut); }
.pc-result-yes p,
.pc-result-maybe p { color: var(--ff-ink); margin: 0; }
.pc-result-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pc-result-cta .btn { padding: 10px 20px; font-size: .82rem; }

/* sr-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===== FAQ ===== */
.ct-faq-inner { max-width: var(--maxw-mid); margin: 0 auto; }
.ct-faq-head { text-align: center; margin-bottom: 40px; }
.ct-faq-head .ornament { margin: 12px auto 14px; }
.ct-faq-head h2 { margin-top: 6px; }
.ct-faq-head h2 em { font-style: italic; color: var(--ff-green-dark); font-weight: 500; }
.ct-faq-list { display: flex; flex-direction: column; gap: 12px; }
.ct-faq-item {
  background: #fff; border: 1px solid var(--ff-line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.ct-faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(184, 151, 88, .35); }
.ct-faq-item[open] { border-color: rgba(90, 122, 75, .35); }
.ct-faq-item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--ff-walnut);
  transition: background .2s ease;
}
.ct-faq-item summary::-webkit-details-marker { display: none; }
.ct-faq-item summary:hover { background: var(--ff-paper); }
.ct-faq-item summary svg { width: 20px; height: 20px; color: var(--ff-green); transition: transform .25s ease; flex-shrink: 0; }
.ct-faq-item[open] summary svg { transform: rotate(180deg); }
.ct-faq-body { padding: 0 24px 22px; color: var(--ff-ink); }
.ct-faq-body p { margin: 0; line-height: 1.65; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ct-main-inner { grid-template-columns: 1fr; gap: 28px; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-pc-card { grid-template-columns: 1fr; gap: 18px; }
  .ct-pc-form { flex-direction: column; }
  .ct-pc-form .btn { width: 100%; justify-content: center; }
  .ct-map-legend {
    position: static;
    margin: 14px auto 0;
    max-width: none;
    width: 100%;
  }
  .ct-map-wrap { padding-left: 0; padding-right: 0; }
  .ct-map { border-radius: 0; }
}

@media (max-width: 560px) {
  .ct-form-card, .ct-direct-card { padding: 22px; }
  .ct-channel { gap: 12px; padding: 18px 0; }
  .ct-channel-icon { width: 44px; height: 44px; }
  .ct-faq-item summary { padding: 18px; font-size: 1.04rem; min-height: 44px; }
  .ct-faq-body { padding: 0 18px 18px; }
  .ct-pc-form .btn { min-height: 48px; }
}
