/* Leased line instant quote: a stepped form (location, speed, price, details) beside a trust panel. */

/* One even 1rem gap between every block, matching the gap between the side panel's cards. The
   site's container adds its own gap and a top margin to each block, which stacked up unevenly
   here, so those are reset. */
main .container.lq-page { gap: 1rem; }
main .container.lq-page > * { margin-top: 0; margin-bottom: 0; }

/* 964px = the 600px form + 1.5rem gap + 340px trust panel, so the breadcrumb lines up with both. */
.lq-breadcrumb { width: 100%; max-width: 964px; margin: 0 auto; font-size: 0.9rem; color: var(--muted); }
.lq-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.lq-breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: #9aa8b8; }
.lq-breadcrumb a { color: var(--accent); }

/* Heading panel in the site's navy call-to-action style, the same width as the cards below. */
.lq-intro {
  width: 100%;
  max-width: 964px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #154b78 65%, var(--accent) 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(11, 44, 71, 0.12);
}
.lq-intro .section-title { margin: 0; color: #ffffff; }
.lq-intro p { color: #d6e3f0; margin: 0.5rem 0 0; }
.cx-quick-points.lq-assurances { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.1rem; }
.lq-assurances li { color: #ffffff; font-weight: 600; font-size: 0.95rem; }

.lq-layout { display: grid; gap: 1rem 1.5rem; width: 100%; max-width: 964px; margin: 0 auto; }
@media (min-width: 960px) {
  .lq-layout { grid-template-columns: minmax(0, 600px) 340px; justify-content: center; align-items: stretch; }
  /* The form and side panel share one height: the form's buttons sit at the bottom of its card,
     and the "Why Bletchley Networks" card takes any spare height in the panel. */
  .lq-layout > .lq-wizard { display: flex; flex-direction: column; }
  .lq-layout .lq-step:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
  .lq-layout .lq-step > .lq-actions { margin-top: auto; }
  .lq-layout > .lq-trust { display: flex; flex-direction: column; }
  .lq-layout > .lq-trust > .lq-trust-card:first-child { flex: 1; }
  /* The details step is much taller, so there the panel keeps its natural height. */
  .lq-layout[data-step="4"] > .lq-trust { align-self: start; }
  .lq-layout[data-step="4"] > .lq-trust > .lq-trust-card:first-child { flex: none; }
}

.lq-trust { display: grid; gap: 1rem; align-content: start; }
.lq-trust-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem 1.25rem; }
.lq-trust-card h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--primary); }
.lq-trust-card p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.lq-why { gap: 0.6rem; }
.lq-why li { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.lq-why strong { color: var(--primary); }

/* Google rating badge under the why-us points (styled like the Starlink page's badge). */
.lq-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  background: #fff;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 4px 14px rgba(18, 35, 58, 0.08);
}
.lq-google-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.lq-google-copy { display: grid; gap: 0.1rem; line-height: 1.2; }
.lq-google-label { color: #6a7584; font-size: 0.78rem; font-weight: 700; }
.lq-google-score { display: flex; align-items: center; gap: 0.3rem; color: #f5a300; white-space: nowrap; }
.lq-google-score strong { font-size: 1.04rem; line-height: 1; }
.lq-credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: center; justify-items: center; margin-top: 0.75rem; }
.lq-credentials img { width: auto; max-width: 100%; height: auto; max-height: 34px; object-fit: contain; }
/* Once the panel stacks under the form, the accreditations card is centred. */
@media (max-width: 959px) {
  .lq-credentials-card { text-align: center; }
  .lq-credentials { grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 1.75rem; }
}

/* FAQ under the form and panel: expandable questions, in two columns on wider screens. */
.lq-faq { width: 100%; max-width: 964px; margin: 0 auto; }
.lq-faq-list { display: grid; column-gap: 2rem; align-items: start; margin-top: 0.25rem; }
@media (min-width: 760px) { .lq-faq-list { grid-template-columns: 1fr 1fr; } }
.lq-faq details { border-top: 1px solid var(--border); }
.lq-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.lq-faq summary::-webkit-details-marker { display: none; }
.lq-faq summary::after { content: "+"; flex: none; font-size: 1.15rem; line-height: 1; color: var(--accent); }
.lq-faq details[open] summary::after { content: "−"; }
.lq-faq summary:focus-visible { outline: 3px solid rgba(27, 108, 168, 0.3); outline-offset: 2px; border-radius: 4px; }
.lq-faq details p { margin: 0 0 0.8rem; }
.lq-faq details a { color: var(--accent); font-weight: 600; }

.lq-wizard {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 58, 95, 0.06);
}
@media (max-width: 480px) { .lq-wizard { padding: 1.1rem; } }

.lq-progress { margin-bottom: 1.5rem; }
.lq-progress-label { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.lq-progress-label strong { color: var(--primary); }
.lq-progress-track { height: 8px; border-radius: 999px; background: #e7edf4; overflow: hidden; }
.lq-progress-fill { height: 100%; width: 25%; border-radius: 999px; background: var(--accent); transition: width 0.3s ease; }
@media (prefers-reduced-motion: reduce) { .lq-progress-fill { transition: none; } }

.lq-step[hidden] { display: none; }
.lq-step h2 { margin: 0; font-size: 1.35rem; color: var(--primary); outline: none; }
.lq-step p.lq-lead { margin: 0.4rem 0 1.25rem; color: var(--muted); }

.lq-field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.lq-field[hidden] { display: none; }
.lq-field label { font-weight: 700; color: var(--primary); }
.lq-field label span { color: var(--muted); font-weight: 600; }
.lq-field input,
.lq-field select {
  width: 100%;
  border: 1px solid #c9d7e6;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}
#lq-postcode { text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.02em; }
.lq-field input[aria-invalid="true"] { border-color: #b42318; }
.lq-field input:focus,
.lq-field select:focus { outline: 3px solid rgba(27, 108, 168, 0.18); border-color: var(--accent); }

/* The address list while it loads. */
.lq-field select:disabled { background: #f4f7fa; color: var(--muted); cursor: wait; opacity: 1; }

.lq-options { display: grid; gap: 0.75rem; margin-bottom: 1.25rem; }
.lq-option { position: relative; display: block; cursor: pointer; }
.lq-option input { position: absolute; opacity: 0; pointer-events: none; }
.lq-option-body {
  display: grid;
  gap: 0.2rem;
  border: 1.5px solid #c9d7e6;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lq-option-title { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.lq-option-text { color: var(--muted); font-size: 0.92rem; }
.lq-option:hover .lq-option-body { border-color: #8fb6d6; }
.lq-option input:checked + .lq-option-body { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: #f3f8fd; }
.lq-option input:focus-visible + .lq-option-body { outline: 3px solid rgba(27, 108, 168, 0.35); outline-offset: 2px; }
.lq-option input[aria-invalid="true"] + .lq-option-body { border-color: #b42318; }

/* Both router boxes stretch to the height of the taller one. */
.lq-options.is-router { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 0.75rem; }
.lq-options.is-router .lq-option { display: flex; }
.lq-options.is-router .lq-option-body { flex: 1; align-content: start; text-align: center; justify-items: center; padding: 1rem 0.75rem; }
.lq-option-art { height: 64px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.lq-option-art svg { height: 100%; max-width: 100%; }
.lq-options.is-pair { grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.lq-options.is-pair .lq-option-body { text-align: center; padding: 0.7rem; }
.lq-options.is-pair .lq-option-title { font-size: 1rem; }

.lq-router,
.lq-choice { border: 0; margin: 0; padding: 0; }
.lq-router legend,
.lq-choice legend { font-weight: 700; color: var(--primary); margin-bottom: 0.6rem; padding: 0; }

.lq-slider { margin: 0.25rem 0 1.25rem; }
.lq-speed-value { display: block; margin: 0.25rem 0 1.25rem; text-align: center; font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lq-range { width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.lq-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill, 0%), #e1e9f2 var(--fill, 0%));
}
.lq-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 6px rgba(15, 58, 95, 0.25);
}
.lq-range::-moz-range-track { height: 8px; border-radius: 999px; background: #e1e9f2; }
.lq-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--accent); }
.lq-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(15, 58, 95, 0.25); }
.lq-range:focus-visible { outline: none; }
.lq-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(27, 108, 168, 0.3); }
.lq-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(27, 108, 168, 0.3); }
/* Tick labels sit under each slider stop; the side margins match half the thumb width. */
.lq-ticks { display: flex; justify-content: space-between; margin: 0.4rem 13px 0; font-size: 0.8rem; color: var(--muted); }
.lq-ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }

.lq-actions { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.lq-actions .lq-primary { margin-left: auto; }
.lq-primary,
.lq-secondary {
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
}
.lq-primary { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.lq-primary:hover,
.lq-primary:focus-visible { background: #155584; border-color: #155584; }
.lq-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.lq-secondary { background: #fff; border: 1px solid #c9d7e6; color: var(--primary); }
.lq-secondary:hover,
.lq-secondary:focus-visible { border-color: var(--accent); }
.lq-primary:focus-visible,
.lq-secondary:focus-visible { outline: 3px solid rgba(27, 108, 168, 0.3); outline-offset: 2px; }
a.lq-primary { display: inline-block; text-decoration: none; }
a.lq-primary:hover,
a.lq-primary:focus-visible { color: #fff; text-decoration: none; }
@media (max-width: 480px) {
  .lq-actions { flex-direction: column-reverse; align-items: stretch; }
  .lq-actions .lq-primary { margin-left: 0; }
}

.lq-status { margin: 0.25rem 0 0.75rem; min-height: 1.4em; color: var(--muted); font-size: 0.95rem; }
.lq-status.is-error { color: #b42318; font-weight: 600; }

.lq-loading { display: flex; align-items: center; gap: 0.75rem; padding: 1.5rem 0; color: var(--muted); }
.lq-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #d6e3f0;
  border-top-color: var(--accent);
  animation: lq-spin 0.8s linear infinite;
  flex: none;
}
@keyframes lq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lq-spinner { animation-duration: 2.4s; } }

.lq-summary { margin: 0.4rem 0 1.25rem; color: var(--muted); }
.lq-prices { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1rem; }
.lq-price { border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem; background: #fff; }
.lq-price h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.lq-amount { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lq-amount small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.lq-price p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; }
.lq-price.is-none .lq-amount { font-size: 1.1rem; }
.lq-small { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }

.lq-recap { background: #f5f8fc; border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 0.9rem; margin: 0 0 1.25rem; font-size: 0.95rem; }
.lq-recap p { margin: 0; }
.lq-recap p + p { margin-top: 0.25rem; color: var(--muted); }
.lq-recap strong { color: var(--primary); }
.lq-check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 0.75rem; font-size: 0.95rem; cursor: pointer; }
.lq-check input { width: 18px; height: 18px; margin: 0.15rem 0 0; flex: none; accent-color: var(--accent); }
.lq-check input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.lq-check a { color: var(--accent); }
/* Holds the widget's height (65px) so Continue doesn't move when it appears. */
.lq-turnstile { min-height: 65px; margin: 0.25rem 0 0.5rem; }

.lq-done { text-align: center; }
.lq-done[hidden] { display: none; }
.lq-done-icon {
  width: 56px;
  height: 56px;
  margin: 0.25rem auto 0.75rem;
  border-radius: 50%;
  background: #e7f6ec;
  color: #1a7f3c;
  display: grid;
  place-items: center;
}
.lq-done p { color: var(--muted); margin: 0.5rem 0 0; }
.lq-reference { font-weight: 800; color: var(--primary); letter-spacing: 0.04em; }
.lq-done .lq-actions { justify-content: center; margin-top: 1.5rem; }
.lq-done .lq-actions .lq-primary { margin-left: 0; }
