@charset "utf-8";

/* =========================================================
   WINFAN — /get-a-quote/ enquiry form
   Extends the shared tokens in style.css / solutions.css.
   ========================================================= */

/* ---------- hero ---------- */
.phero--quote{
  background:
    radial-gradient(circle at 78% 18%, rgba(91,71,196,.34), rgba(40,27,100,0) 58%),
    linear-gradient(160deg, var(--ink) 0%, #241d3f 58%, var(--brand) 100%);
}
.phero--quote h1{max-width:20ch}

/* ---------- section head ---------- */
.qhead{max-width:78ch;margin-bottom:clamp(26px,3vw,40px)}
.qhead .h2{max-width:26ch}
/* The page has no banner, so the section label carries the H1. It has to
   keep the body typeface the eyebrow uses everywhere else. */
.qhead h1.eyebrow{font-family:inherit}
/* The lead carries the section here, so it is set at the lead size of
   the rest of the site rather than at the muted note size. */
.qhead .lead{margin-top:16px;font-size:clamp(17px,1.5vw,20px);line-height:1.6;max-width:62ch}
.qhead__note{
  margin-top:12px;
  font-size:14.5px;
  line-height:1.65;
  color:var(--muted);
}

/* ---------- layout: form + rail ---------- */
.qwrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,320px);
  gap:clamp(28px,4vw,64px);
  align-items:start;
}
.qmain{min-width:0}

/* ---------- the form ---------- */
.qform{
  background:#fff;
  border:1px solid var(--line);
  padding:clamp(22px,3vw,38px);
}

.qblock{
  border:0;
  border-top:1px solid var(--line);
  margin:0;
  padding:clamp(20px,2.4vw,30px) 0;
}
.qblock:first-of-type{border-top:0;padding-top:0}

.qblock__legend{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:baseline;
  gap:12px;
  width:100%;
  padding:0;
  margin-bottom:6px;
}
.qblock__no{
  font-family:"Archivo","Inter",Arial,sans-serif;
  font-size:12px;font-weight:700;letter-spacing:.08em;
  color:var(--brand);
  background:rgba(40,27,100,.07);
  border:1px solid rgba(40,27,100,.16);
  padding:3px 8px;
  line-height:1.4;
  white-space:nowrap;
}
.qblock__title{
  font-family:"Archivo","Inter",Arial,sans-serif;
  font-size:16.5px;font-weight:600;letter-spacing:-.014em;
  line-height:1.34;
  color:var(--text);
}
.qblock__req{font-size:11px;letter-spacing:.06em;color:var(--muted);white-space:nowrap}
.qblock__req .qreq{color:#b8442e;font-weight:700}
.qblock__req .qopt{color:var(--muted);opacity:.75}

/* fields */
.qfield{margin-top:14px}
.qfield__lab{
  display:block;
  font-size:13.5px;font-weight:600;letter-spacing:.005em;
  color:#3a3a40;
  margin-bottom:7px;
}
/* The question text is already the legend of the fieldset. The label stays
   in the markup so the control keeps a programmatic name, but it is hidden
   from sight — not from a screen reader. */
.qfield__lab--vh{
  position:absolute;
  width:1px;height:1px;
  margin:-1px;padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.qreq{color:#b8442e;margin-left:3px}
/* The "optional" note on a single control of a question that also has
   required controls. Quieter than the label it sits behind. */
.qfield__lab .qopt{
  margin-left:6px;
  font-size:11px;font-weight:500;letter-spacing:.05em;
  color:var(--muted);opacity:.85;
}

.qgroup{
  display:grid;
  gap:14px;
  margin-top:14px;
}
.qgroup:has(.qfield:nth-child(3)){
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}

input[type="text"],input[type="email"],input[type="tel"],select,textarea{
  width:100%;
  font:inherit;
  font-size:15px;
  color:var(--text);
  background:#fff;
  border:1px solid var(--line-2);
  border-radius:var(--r);
  padding:11px 13px;
  transition:border-color .18s var(--ease),box-shadow .18s var(--ease);
  -webkit-appearance:none;
  appearance:none;
}
select{
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%2363636a' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:38px;
}
textarea{resize:vertical;min-height:104px;line-height:1.6}
input:hover,select:hover,textarea:hover{border-color:#bfb8ab}
input:focus,select:focus,textarea:focus{
  outline:0;
  border-color:var(--brand-3);
  box-shadow:0 0 0 3px rgba(91,71,196,.13);
}
input::placeholder,textarea::placeholder{color:#a5a29b}

/* invalid state, set by the browser and by the script.
   The transition is dropped on purpose: a wrong answer has to be seen at
   once, not fade in a fraction of a second later. */
.qform .is-bad{
  border-color:#c9503a;
  background:#fdf8f6;
  transition:none;
}
.qform .is-bad:focus{box-shadow:0 0 0 3px rgba(201,80,58,.14)}

/* A radio button is 16px wide, so a red frame drawn on the input itself
   cannot be seen. The frame goes on the label that carries it. The class
   is set by the script rather than matched with :has(), because :has() is
   not supported in every browser an overseas customer may use. */
.qform .qradio.is-bad{
  border-color:#c9503a;
  background:#fdf8f6;
}
.qform .qradio.is-bad input{accent-color:#c9503a}

.qfield__help{
  margin-top:8px;
  font-size:12.8px;
  line-height:1.62;
  color:var(--muted);
  max-width:74ch;
}
.qfield__err{
  margin-top:8px;
  font-size:13px;
  font-weight:600;
  color:#a8442c;
}
.qfield__err[hidden]{display:none}

/* radios */
.qradios{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.qradio{
  display:inline-flex;align-items:center;gap:9px;
  border:1px solid var(--line-2);
  border-radius:var(--r);
  padding:10px 16px;
  font-size:14.4px;
  color:var(--text);
  cursor:pointer;
  background:#fff;
  transition:border-color .18s var(--ease),background-color .18s var(--ease);
}
.qradio:hover{border-color:#bfb8ab}
.qradio input{
  width:16px;height:16px;margin:0;
  accent-color:var(--brand);
  cursor:pointer;
}
.qradio:has(input:checked){
  border-color:var(--brand);
  background:rgba(40,27,100,.045);
}

/* honeypot — off screen but not display:none, so bots still fill it */
.qhoneypot{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}

/* submit */
.qsubmit{
  border-top:1px solid var(--line);
  margin-top:26px;
  padding-top:26px;
  display:grid;
  gap:16px;
}
.qsubmit__btn{
  justify-self:start;
  height:54px;
  padding:0 28px;
  font-size:15px;
}
.qsubmit__note{
  font-size:12.8px;
  line-height:1.66;
  color:var(--muted);
  max-width:66ch;
}
.qsubmit__note a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}

.qstatus{
  margin-top:18px;
  padding:12px 15px;
  font-size:14px;
  font-weight:600;
  border-left:2px solid var(--brand);
  background:rgba(40,27,100,.05);
  color:var(--brand);
}
.qstatus[hidden]{display:none}
.qstatus.qstatus--bad{
  border-left-color:#b8442e;
  background:#fdf4f1;
  color:#a8442c;
}

/* ---------- side rail ---------- */
.qrail{
  position:sticky;
  top:calc(var(--hdr-h) + 28px);
  border:1px solid var(--line);
  background:var(--sand);
  padding:24px 24px 26px;
}
.qrail__t{
  font-size:10px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;
  color:var(--brand);
  margin-bottom:18px;
}
.qrail__steps{display:grid;gap:16px}
.qrail__steps li{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 12px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.qrail__steps li:last-child{border-bottom:0;padding-bottom:0}
.qrail__no{
  grid-row:span 2;
  font-family:"Archivo","Inter",Arial,sans-serif;
  font-size:12px;font-weight:700;
  color:var(--brand);
  padding-top:2px;
}
.qrail__steps b{
  font-size:14.4px;font-weight:600;letter-spacing:-.01em;
  line-height:1.35;color:var(--text);
}
.qrail__steps span:last-child{
  font-size:13.2px;line-height:1.62;color:var(--muted);
}
.qrail__note{
  margin-top:20px;padding-top:18px;
  border-top:1px solid var(--line-2);
  font-size:12.6px;line-height:1.66;color:var(--muted);
}
.qrail__alt{
  margin-top:22px;
  font-size:10px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;
  color:var(--brand);
}
.qrail__altmail{margin-top:10px}
.qrail__altmail a{
  font-size:15.5px;font-weight:600;
  color:var(--brand);
  border-bottom:1px solid rgba(40,27,100,.3);
}
.qrail__alttext{margin-top:8px;font-size:12.6px;line-height:1.6;color:var(--muted)}

/* ---------- closing block ---------- */
.qclose{max-width:76ch}
.qclose .h2{max-width:22ch}
.qclose .lead{margin-top:16px;color:var(--muted);font-size:15.5px;line-height:1.72}
.qclose__note{
  margin-top:24px;padding-top:20px;
  border-top:1px solid var(--line);
  font-size:13.6px;line-height:1.7;color:var(--muted);
  max-width:70ch;
}
/* The closing block carries one action button to the right of the copy. */
.qclose--row{
  max-width:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:clamp(28px,5vw,80px);
  align-items:center;
}
.qclose__copy{max-width:76ch}
.qclose__act{display:flex}
.qclose__act .btn{white-space:nowrap}

/* ---------- thank-you page: copy on the left, the team on the right ---------- */
.qthanks{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(280px,33%,420px);
  gap:clamp(28px,4vw,64px);
  align-items:center;
}
/* The copy fills the column so the gap alone sets the distance to the
   photograph; the line lengths are capped here instead. */
.qthanks .qclose{max-width:none}
.qthanks .qclose .lead{max-width:56ch}
.qthanks__fig{margin:0}
.qthanks__fig img{
  display:block;width:100%;height:auto;
  border-radius:var(--r);
  border:1px solid var(--line);
}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .qwrap{grid-template-columns:1fr}
  .qrail{position:static}
}

@media (max-width:860px){
  .qthanks{grid-template-columns:1fr;gap:30px}
  .qthanks__fig{max-width:420px}
}

@media (max-width:760px){
  .qclose--row{grid-template-columns:1fr;gap:24px}
  .qclose__act .btn{width:100%}
}

@media (max-width:640px){
  .qform{padding:20px 16px}
  .qblock__legend{grid-template-columns:auto 1fr;gap:8px 10px}
  .qblock__req{grid-column:2}
  .qgroup:has(.qfield:nth-child(3)){grid-template-columns:1fr}
  .qsubmit__btn{width:100%}
}
