/* ==========================================================================
   DW WiFi · contact.css · /contact-us
   CONTACT builder owns this file. Shell tokens and classes come from site.css.
    1 Top: title, then the grid (direct lines | enquiry form | Cambium)
    2 The direct lines panel (navy)
    3 The enquiry card + form details
    4 Signal Lock (the logo's own loops as the meter and the reward)
    5 The done state (honest hand-off, other ways to send)
    6 Cambium partner block
    7 "Good to know" route cards
    8 Motion + reduced motion
   ========================================================================== */


/* 1 Top ------------------------------------------------------------------- */
.ct-top { padding-top: var(--hero-top); padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.ct-head {
  display: grid;
  gap: .85rem 3rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.ct-head h1 { max-width: 14ch; }
.ct-head .lead { max-width: 33rem; }
@media (min-width: 1100px) {
  .ct-head { grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); align-items: end; }
  .ct-head .lead { padding-bottom: .35rem; }
}

/* phones: lines, then the form, then Cambium. Desktop: lines over Cambium as one
   navy column on the left, the form beside them from the top. */
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "call" "form" "cn";
  gap: 1.25rem;
}
.ct-call { grid-area: call; }
.ct-formcard { grid-area: form; }
.ct-cn { grid-area: cn; }
@media (min-width: 1000px) {
  .ct-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "call form" "cn form";
    column-gap: clamp(1.5rem, -1rem + 3.5vw, 2.75rem);
    row-gap: 0;
  }
  .ct-formcard { align-self: stretch; }
}


/* 2 Direct lines ----------------------------------------------------------- */
.ct-call {
  position: relative;
  padding: 1.5rem 1.25rem .5rem;
  border-radius: var(--radius-xl);
  background: var(--navy-950);
  color: var(--white);
}
.ct-call-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ct-call-title { font-size: clamp(1.625rem, 1.35rem + .9vw, 2rem); line-height: 1.1; color: var(--white); }
.ct-call-sub { margin-top: .45rem; max-width: 34ch; font-size: .9375rem; line-height: 1.5; color: var(--fog); }
/* the green-wifi Lottie, lime arcs on a plate recoloured to this exact navy */
/* no negative bottom margin: the plate is opaque, it must never sit over the subline */
.ct-call-mark { flex: none; width: 84px; aspect-ratio: 1; margin: -1.1rem -.85rem -.35rem 0; }
.ct-lines { margin-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.ct-line {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  min-height: 66px;
  padding-block: .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
  text-decoration: none;
}
.ct-lines li:last-child .ct-line { border-bottom: 0; }
.ct-line-ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--lime-300);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.ct-line-ico .icon { width: 1.15rem; height: 1.15rem; stroke-width: 1.8; }
.ct-line-txt { display: grid; min-width: 0; line-height: 1.25; }
.ct-line-k { font-size: .8125rem; font-weight: 500; color: var(--fog); }
.ct-line-v { margin-top: .15rem; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.ct-line-v.readout { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.ct-line > .icon-arrow { width: 1.1rem; height: 1.1rem; color: var(--fog); transition: transform var(--dur-fast) ease, color var(--dur-fast) ease; }
.ct-line:hover .ct-line-ico { background: var(--lime-500); color: var(--navy-950); }
.ct-line:hover > .icon-arrow { transform: translateX(3px); color: var(--lime-300); }
.ct-line:hover .ct-line-v { text-decoration: underline; text-decoration-color: var(--lime-500); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.ct-line:focus-visible { outline: 3px solid var(--lime-500); outline-offset: -2px; border-radius: var(--radius-sm); }
@media (min-width: 1000px) {
  /* joined to the Cambium block beneath it: one navy column */
  .ct-call { padding: 2rem 1.75rem .6rem; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}


/* 3 Enquiry card ------------------------------------------------------------ */
.ct-formcard {
  min-width: 0;
  padding: clamp(1.25rem, .6rem + 2.6vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.ct-form { gap: 1.6rem; }
.ct-formhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; }
.ct-formhead h2 { min-width: 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); line-height: 1.08; }
.ct-formlede { grid-column: 1 / -1; margin-top: .55rem; max-width: 31rem; font-size: .9375rem; line-height: 1.55; color: var(--slate); }
.ct-to { font-weight: 600; color: var(--navy-900); white-space: nowrap; }
/* names sit side by side even at 390 (two short fields); everything else stacks */
@media (max-width: 639px) {
  .ct-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-form .form-grid > :not(.ct-half) { grid-column: 1 / -1; }
}

/* the prep list + floor plans question, shown once a survey type is chosen */
.ct-prep {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: var(--radius);
  background: var(--arc-20);
  color: var(--navy-900);
}
.ct-prep-h { font-size: .9375rem; font-weight: 600; }
.ct-prep-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.ct-prep-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: .5rem;
  font-size: .9375rem;
  line-height: 1.45;
}
.ct-prep-list li::before {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-top: .45em;
  justify-self: center;
  border-radius: 50%;
  background: var(--lime-ink-deep);
}
.ct-plans { padding-top: .9rem; border-top: 1px solid rgba(12, 43, 77, .1); }
.ct-plans legend { float: left; width: 100%; margin-bottom: .6rem; font-size: .9375rem; font-weight: 600; }
.ct-plans legend .optional { color: #3F4F5F; }
.ct-seg { clear: both; display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-seg label { position: relative; display: inline-flex; cursor: pointer; }
.ct-seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ct-seg span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1.15rem;
  border: 1.5px solid var(--input-line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy-900);
  font-size: .9375rem;
  font-weight: 500;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.ct-seg label:hover span { border-color: var(--navy-900); }
.ct-seg input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.ct-seg input:focus-visible + span { outline: 3px solid var(--navy-900); outline-offset: 2px; }

.ct-form .field textarea { min-height: 7.5rem; }
.ct-form .field .hint { margin-top: -.2rem; }
.ct-form .char-count { margin-top: -.25rem; }

/* company + type of site, folded away so the form reads as six things to fill */
.ct-extra { border-block: 1px solid var(--rule); }
.ct-extra summary {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 52px;
  padding-block: .35rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.ct-extra summary::-webkit-details-marker { display: none; }
.ct-extra-label { min-width: 0; }
.ct-extra summary:hover { text-decoration: underline; text-decoration-color: var(--lime-ink); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.ct-extra summary:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 2px; border-radius: var(--radius-sm); }
.ct-extra-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy-900);
  transition: transform var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.ct-extra-ico .icon { width: .95rem; height: .95rem; stroke-width: 2.2; }
.ct-extra[open] .ct-extra-ico { transform: rotate(45deg); background: var(--arc-20); }
.ct-extra-grid { display: grid; gap: 1.25rem 1rem; padding: .5rem 0 1.25rem; }
@media (min-width: 640px) {
  .ct-extra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ct-actions { gap: .75rem 1.25rem; }
.ct-actions .btn { min-width: 13rem; }
.ct-actions-hint { flex: 1 1 15rem; max-width: 22rem; }
.ct-req-note { white-space: nowrap; }
@media (max-width: 479px) {
  .ct-actions .btn { flex: 1 1 100%; }
  .ct-actions-hint { max-width: none; }
}


/* 4 Signal Lock -------------------------------------------------------------- */
/* The real DW logo (shared full-geometry copy) stacked three times:
   arcs (conic mask sweeps the loops in their drawing direction), glint
   (brightened copy seen through a moving band), tile (always visible, so the
   loops pass behind it as in the artwork). Nothing traced or redrawn. */
.lock { position: relative; aspect-ratio: 1488 / 936; }
.lock img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.lock-sm { flex: none; width: 128px; margin: -22px -14px -18px 0; }
.lock-lg { width: min(340px, 88%); margin: -4px auto -2.5%; transform: translateX(-5%); }
.lock-ghost { opacity: .16; }
.lock-arcs {
  --a: 360deg;
  -webkit-mask-image: conic-gradient(from 285deg at 59% 38.5%, #000 0deg, #000 calc(var(--a) - 20deg), transparent var(--a));
          mask-image: conic-gradient(from 285deg at 59% 38.5%, #000 0deg, #000 calc(var(--a) - 20deg), transparent var(--a));
}
.lock-sm .lock-arcs { --a: 0deg; }
.lock-glint {
  --g: 0deg;
  opacity: 0;
  filter: brightness(1.55) saturate(1.15);
  -webkit-mask-image: conic-gradient(from 285deg at 59% 38.5%, transparent calc(var(--g) - 46deg), #000 calc(var(--g) - 14deg), transparent var(--g));
          mask-image: conic-gradient(from 285deg at 59% 38.5%, transparent calc(var(--g) - 46deg), #000 calc(var(--g) - 14deg), transparent var(--g));
}
.lock-tile { clip-path: polygon(25.7% 26.4%, 55.2% 26.4%, 55.2% 57.1%, 56.6% 57.7%, 56.6% 86.4%, 25.7% 86.4%); }
@media (max-width: 559px) {
  .lock-sm { width: 100px; margin: -14px -10px -10px 0; }
}


/* 5 Done state (replaces the form inside the same card) ------------------------ */
.ct-done { text-align: center; padding-block: .25rem .5rem; }
.ct-done h2 { margin: .5rem auto 0; max-width: 18ch; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.12; }
.ct-done h2:focus { outline: none; }
.ct-done-lede { margin: .75rem auto 1.4rem; max-width: 31em; color: var(--slate); }
.ct-status { display: grid; gap: .65rem; max-width: 24rem; margin: 0 auto 1.5rem; text-align: left; }
.ct-status li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 500;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.ct-done.is-pre .ct-status li { opacity: 0; transform: translateY(6px); }
.ct-status li + li { transition-delay: .12s; }
.ct-ico { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.ct-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-ico-ok { background: var(--lime-500); color: var(--navy-950); }
.ct-ico-clip { background: var(--mist); color: var(--navy-900); }
.ct-ico-clip svg { stroke-width: 2; width: 15px; height: 15px; }
.ct-ico-wait { border: 2px solid var(--lime-ink); }
.ct-ico-wait::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-ink); }
.ct-done-main { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

.ct-other, .ct-done-call { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.ct-other-h, .ct-done-call-h { font-family: var(--font-text); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--navy-900); }
.ct-opts, .ct-done-calls { display: grid; gap: .6rem; margin-top: .85rem; }
.ct-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .6rem 1rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.ct-opt .icon { flex: none; width: 1.1rem; height: 1.1rem; stroke-width: 1.9; color: var(--lime-ink); }
.ct-opt:hover { border-color: var(--navy-900); background: var(--paper); }
.ct-opt:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 2px; }
.ct-opt.is-copied { border-color: var(--lime-ink); background: var(--arc-20); }
.ct-opt-call .readout { font-size: 1.0625rem; font-weight: 500; }
.ct-copied { min-height: 1.5em; margin-top: .6rem; font-size: .9375rem; font-weight: 600; color: var(--lime-ink); }
.ct-copied:empty { min-height: 0; margin-top: 0; }
@media (min-width: 560px) {
  .ct-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-done-calls { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 26rem; margin-inline: auto; }
}
@media (max-width: 559px) {
  .ct-done-main .btn { flex: 1 1 100%; }
}


/* 6 Cambium partner block ---------------------------------------------------- */
.ct-cn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: 1.5rem 1.25rem 0;
  border-radius: var(--radius-xl);
  background: var(--navy-950);
  color: var(--white);
}
.ct-cn-logo { display: inline-flex; margin-bottom: .2rem; border-radius: var(--radius-sm); }
.ct-cn-logo img { width: auto; height: 44px; }
.ct-cn-text { max-width: 24rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; line-height: 1.45; color: var(--white); }
.ct-cn .link-arrow { margin-top: -.1rem; }
.ct-cn-stage {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: .5rem;
}
/* lime under-glow, like the logo's loops falling on the floor beneath the unit */
.ct-cn-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -18%;
  width: 92%;
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(136, 174, 62, .32), rgba(136, 174, 62, 0));
}
.ct-cn-render {
  display: block;
  width: min(15rem, 64%);
  height: auto;
  margin: -.5rem -.25rem 1.25rem 0;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .4));
}
/* tablets: words left, the unit right, so the card is not a tall empty block */
@media (min-width: 600px) and (max-width: 999px) {
  .ct-cn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); column-gap: 1.5rem; align-content: start; padding: 1.75rem 1.75rem 1.5rem; }
  .ct-cn > :not(.ct-cn-stage) { grid-column: 1; justify-self: start; }
  .ct-cn-stage { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 0; }
  .ct-cn-render { width: 100%; margin: 0; }
}
@media (min-width: 1000px) {
  .ct-cn { padding: 1.75rem 1.75rem 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .ct-cn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 1px;
    background: rgba(255, 255, 255, .12);
  }
  .ct-cn-render { width: min(18rem, 76%); margin: .25rem -.25rem 1.5rem 0; }
}


/* 7 Good to know ---------------------------------------------------------------- */
.ct-more { padding-bottom: var(--section-y); }
.ct-more-title { margin-bottom: clamp(1rem, .8rem + 1vw, 1.75rem); font-size: clamp(1.5rem, 1.3rem + .9vw, 2rem); line-height: 1.15; }
.ct-routes { display: grid; gap: .85rem; }

/* phones and tablets: a compact row, words left and the real image as a thumbnail */
.ct-route {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  gap: 1rem;
  padding: 1.1rem 1.1rem 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--navy-900);
}
.ct-route-body { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-width: 0; }
.ct-route h3 { font-size: 1.1875rem; line-height: 1.2; }
.ct-route p { font-size: .9375rem; line-height: 1.5; color: var(--slate); }
.ct-route .link-arrow { margin-top: auto; font-size: .9375rem; }
.ct-route-mail { font-weight: 600; color: var(--navy-900); white-space: nowrap; }
.ct-route-media {
  position: relative;
  overflow: hidden;
  align-self: start;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--navy-950);
}
.ct-shot { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.ct-shot .frame-bar { display: none; }
.ct-shot img, .ct-route-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-shot-tamo img { object-position: 40% 30%; }
.ct-shot-chan img { object-position: 14% 50%; }
.ct-route-photo img { object-position: 50% 35%; }
@media (min-width: 600px) and (max-width: 899px) {
  .ct-route { grid-template-columns: minmax(0, 1fr) 10rem; }
}

/* desktop: three cards, the real thing on top, the words beneath */
@media (min-width: 900px) {
  .ct-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .ct-route { grid-template-columns: minmax(0, 1fr); grid-template-rows: 13rem auto; gap: 0; padding: 0; }
  .ct-route-media { order: -1; align-self: stretch; aspect-ratio: auto; border-radius: 0; background: transparent; }
  .ct-route-media-dark { background: var(--navy-950); }
  .ct-route-body { padding: 1.35rem 1.5rem 1.15rem; }
  .ct-route .link-arrow { margin-top: .35rem; }
  /* framed screenshots rise out of the bottom edge of the media area */
  .ct-shot {
    inset: auto;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 18px 40px -18px rgba(7, 27, 49, .45);
  }
  .ct-shot .frame-bar { display: flex; min-height: 30px; padding: .25rem .75rem; font-size: .75rem; }
  .ct-shot img { position: static; height: auto; }
  .ct-shot-tamo { top: 1.5rem; }
  .ct-shot-chan { left: 1.25rem; right: 1.25rem; border-color: rgba(255, 255, 255, .14); box-shadow: 0 0 0 1px rgba(136, 174, 62, .12), 0 20px 50px -20px rgba(0, 0, 0, .8); }
  .ct-route-photo img { object-position: 50% 30%; }
}


/* 8 Motion ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .ct-call, .ct-cn { animation: ct-rise .7s var(--ease-out) .08s both; }
  .ct-formcard { animation: ct-rise .7s var(--ease-out) .16s both; }
  .ct-ico-wait::after { animation: ct-wait 1s ease-in-out 4 alternate; }
  .ct-shot, .ct-route-photo img, .ct-cn-render { transition: transform .5s var(--ease-out); }
  .ct-route:hover .ct-shot { transform: translateY(-4px); }
  .ct-route:hover .ct-route-photo img { transform: scale(1.03); }
  .ct-cn:hover .ct-cn-render { transform: translateY(-4px); }
}
@keyframes ct-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes ct-wait { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .ct-done.is-pre .ct-status li { opacity: 1; transform: none; }
}
