/* LRER Site 1.8.1 quote form.
   Behaviour is still the 1.8.0 multi-step JLR form. The drawing matches 1.6.3:
   the .qq / .fcta card, 13px labels, 12px-radius fields, the yellow .reg plate,
   and .btn / .btn-y / .btn-o buttons. No grey path panels and no UK plate graphic.
   1.7.1: container queries, and the form does not inherit the old .qq / .fcta
   field grids (those were one row of inputs).
   1.7.2: #lrx-main form.lrx-quote .lrxq-btn beats the button reset. */
.lrx-quote{
  --navy:#0A1B33;--navy-2:#0F2647;--ink:#0E1726;--text:#3B4658;--muted:#6B7689;
  --yellow:#FFC72C;--yellow-d:#F2B400;--blue:#2E7CF6;--line:#E3E8F0;--bg:#F4F6FA;
  --green:#1FA971;--err:#B42318;
  font:500 15px/1.45 Inter,system-ui,sans-serif;color:var(--ink);
  display:block;width:100%;max-width:100%;min-width:0;margin:0;padding:0;
  background:transparent;border:0;box-shadow:none;
  container-type:inline-size;container-name:lrxq;
}
/* Beat :is(#lrx-main) .qq form and .fcta form (those grids were the old single row). */
#lrx-main form.lrx-quote,
#lrx-main .qq form.lrx-quote,
#lrx-main .fcta form.lrx-quote,
#lrer form.lrx-quote,
form.lrx-quote{
  display:block!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  gap:0!important;
  width:100%;max-width:100%;min-width:0;
}
.lrx-quote *,.lrx-quote *::before,.lrx-quote *::after{box-sizing:border-box}
.lrx-quote[hidden],.lrx-quote-src{display:none!important}

/* Footer quote: the form is the white card, same as 1.6.3 .fcta form. */
#lrx-main .fcta form.lrx-quote,
#lrx-main .sec.dark form.lrx-quote{
  background:#fff;
  border-radius:22px;
  padding:28px;
  box-shadow:0 24px 60px rgba(10,27,51,.18);
  color:var(--ink);
}
/* Hero strip: .qq-in is already the card. Title stays beside the fields. */
#lrx-main .qq form.lrx-quote{
  background:transparent;
  padding:0;
  box-shadow:none;
  border-radius:0;
}
#lrx-main .qq-in:has(form.lrx-quote){align-items:start}
#lrx-main .fcta:has(form.lrx-quote){align-items:start}

/* Homepage card: same padding the original .qform used, under the navy header. */
#lrer form.lrx-quote{
  background:transparent;
  padding:24px 28px 22px;
  box-shadow:none;
  color:var(--ink);
}
.lrx-quote-wrap{
  background:#fff;border-radius:22px;padding:28px;
  box-shadow:0 24px 60px rgba(10,27,51,.18);color:var(--ink);min-width:0;max-width:100%;
}
.lrx-quote-wrap>.lrx-quote{padding:0;background:transparent;box-shadow:none}

/* Compact step row. Not the equal-width tab bar. */
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-progress,
form.lrx-quote .lrxq-progress{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 14px;padding:0;list-style:none}
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-progress li,
form.lrx-quote .lrxq-progress li{flex:none;margin:0;padding:0 0 4px;font:600 12.5px/1.3 Inter,system-ui,sans-serif;color:var(--muted)}
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-progress li.is-on,
form.lrx-quote .lrxq-progress li.is-on{color:var(--navy);box-shadow:inset 0 -2px 0 var(--yellow)}
.lrx-quote.is-js .lrxq-progress li.is-done{color:var(--green);box-shadow:none}

.lrxq-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
form.lrx-quote{position:relative}
.lrx-quote.is-js .lrxq-panel[hidden]{display:none!important}
.lrxq-panel+.lrxq-panel{margin-top:16px}
.lrx-quote.is-js .lrxq-panel+.lrxq-panel{margin-top:0}

/* The card already has its heading (qq title, footer h2, homepage qcard). Keep this for focus only. */
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-title,
#lrx-main .sec.dark form.lrx-quote .lrxq-title,
#lrx-main .sec.dark form.lrx-quote h3:not(.qcard-top h3),
#lrx-main form.lrx-quote h3:not(.qcard-top h3),
#lrx-main form.lrx-quote h4,
form.lrx-quote .lrxq-title{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
  font:700 16px/1.25 Sora,Inter,sans-serif;color:var(--ink);
}
/* Programmatic focus on the step heading (tabindex=-1) must not show a ring. */
#lrx-main form.lrx-quote .lrxq-title:focus,
#lrx-main form.lrx-quote .lrxq-title:focus-visible,
#lrer form.lrx-quote .lrxq-title:focus,
#lrer form.lrx-quote .lrxq-title:focus-visible,
form.lrx-quote .lrxq-title:focus,
form.lrx-quote .lrxq-title:focus-visible,
form.lrx-quote h3.lrxq-title:focus,
form.lrx-quote h3.lrxq-title:focus-visible{
  outline:none;box-shadow:none
}

.lrxq-path-reg{align-self:start}
.lrxq-path-reg,.lrxq-path-manual{display:contents}
.lrxq-reg-action{display:flex;align-items:flex-end;justify-content:flex-start;align-self:stretch;min-width:0}
.lrxq-full,.lrxq-or,.lrxq-actions,.lrxq-footnote{grid-column:1/-1}
.lrxq-row,.lrxq-path-reg{min-width:0;max-width:100%}

/* 1.6.3 .fcta form label */
:is(#lrx-main,#lrer) form.lrx-quote label,
:is(#lrx-main,#lrer) form.lrx-quote legend,
.lrx-quote-wrap form.lrx-quote label,
.lrx-quote-wrap form.lrx-quote legend,
form.lrx-quote label,
form.lrx-quote legend{
  display:block;font-size:13px;font-weight:600;color:var(--ink);margin:0 0 5px;padding:0;line-height:1.35
}
:is(#lrx-main,#lrer) form.lrx-quote input[type=text],
:is(#lrx-main,#lrer) form.lrx-quote input[type=tel],
:is(#lrx-main,#lrer) form.lrx-quote input[type=email],
:is(#lrx-main,#lrer) form.lrx-quote input[type=number],
:is(#lrx-main,#lrer) form.lrx-quote select,
:is(#lrx-main,#lrer) form.lrx-quote textarea,
.lrx-quote-wrap form.lrx-quote input[type=text],
.lrx-quote-wrap form.lrx-quote input[type=tel],
.lrx-quote-wrap form.lrx-quote input[type=email],
.lrx-quote-wrap form.lrx-quote select,
.lrx-quote-wrap form.lrx-quote textarea,
form.lrx-quote input[type=text],
form.lrx-quote input[type=tel],
form.lrx-quote input[type=email],
form.lrx-quote input[type=number],
form.lrx-quote select,
form.lrx-quote textarea{
  width:100%;max-width:100%;min-width:0;margin:0;
  font:500 15px Inter,system-ui,sans-serif;color:var(--ink);
  border:1.5px solid var(--line);border-radius:12px;padding:13px 14px;
  background:#fff;outline:none;box-shadow:none;line-height:normal;
}
form.lrx-quote textarea{height:auto;resize:vertical;min-height:88px}
form.lrx-quote input:focus,form.lrx-quote select:focus,form.lrx-quote textarea:focus{border-color:var(--blue);outline:none}
form.lrx-quote input.is-invalid,form.lrx-quote select.is-invalid,form.lrx-quote textarea.is-invalid{border-color:var(--err)}

/* 1.6.3 input.reg — yellow plate, not the blue-band UK graphic. */
:is(#lrx-main,#lrer) form.lrx-quote input.reg,
.lrx-quote-wrap form.lrx-quote input.reg,
form.lrx-quote input.reg{
  background:#FFD400;border-color:#E0B800;color:#111;text-align:center;
  font:800 18px/1 Sora,Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;
}
form.lrx-quote input.reg::placeholder{color:#5a4b00;letter-spacing:.06em;opacity:1}
form.lrx-quote input.reg:focus{border-color:#E0B800;background:#FFD400}
/* 1.8.5: the registration field spans the form, not one half of the two-column grid. */
.lrxq-path-reg>.lrxq-row{grid-column:1/-1}
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-path-reg input.reg,
.lrx-quote-wrap form.lrx-quote .lrxq-path-reg input.reg,
form.lrx-quote .lrxq-path-reg input.reg{
  width:100%;max-width:none;box-sizing:border-box
}


/* Minimal OR, in the same line-and-label language as the rest of the card. */
.lrxq-or{
  display:flex;align-items:center;gap:12px;margin:0;padding:2px 0;
  font:600 12px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);user-select:none;
}
.lrxq-or::before,.lrxq-or::after{content:"";flex:1;height:1px;background:var(--line)}

.lrxq-error{margin:0;font-size:13px;color:var(--err);font-weight:600}
.lrxq-error:empty{display:none}
.lrxq-note{margin:0;font-size:13px;color:var(--navy-2);background:#E8F1FF;border-radius:12px;padding:10px 12px;line-height:1.45}
.lrxq-note[hidden]{display:none!important}
.lrxq-noscript{margin:0 0 12px;font-size:13.5px;color:var(--text);background:var(--bg);border-radius:12px;padding:10px 12px}
.lrx-quote.is-js .lrxq-noscript{display:none}
.lrxq-footnote{margin:4px 0 0;font-size:12.5px;color:var(--muted);line-height:1.5}

/* Buttons. Specificity beats :is(#lrx-main) :where(button) and #lrer * {padding:0}.
   Metrics are the 1.6.3 .btn / .btn-y / .btn-o. */
#lrx-main form.lrx-quote .lrxq-btn,
#lrx-main form.lrx-quote button.lrxq-btn,
#lrx-main form.lrx-quote [type=button].lrxq-btn,
#lrx-main form.lrx-quote [type=submit].lrxq-btn,
#lrer form.lrx-quote .lrxq-btn,
#lrer form.lrx-quote button.lrxq-btn,
#lrer form.lrx-quote [type=button].lrxq-btn,
#lrer form.lrx-quote [type=submit].lrxq-btn,
form.lrx-quote .lrxq-btn,
form.lrx-quote button.lrxq-btn,
form.lrx-quote [type=button].lrxq-btn,
form.lrx-quote [type=submit].lrxq-btn,
.lrx-quote-wrap form.lrx-quote .lrxq-btn,
.lrx-quote a.lrxq-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  width:auto;height:auto;margin:0;padding:13px 20px;border:2px solid transparent;border-radius:12px;
  font:700 15px/1.2 Inter,system-ui,sans-serif;cursor:pointer;
  text-decoration:none;text-align:center;white-space:nowrap;
  appearance:none;-webkit-appearance:none;box-sizing:border-box;
  transition:background .2s,color .2s;
}
#lrx-main form.lrx-quote .lrxq-btn-y,
#lrx-main form.lrx-quote button.lrxq-btn-y,
#lrx-main form.lrx-quote [type=button].lrxq-btn-y,
#lrx-main form.lrx-quote [type=submit].lrxq-btn-y,
#lrer form.lrx-quote .lrxq-btn-y,
#lrer form.lrx-quote button.lrxq-btn-y,
form.lrx-quote .lrxq-btn-y,
form.lrx-quote button.lrxq-btn-y,
form.lrx-quote [type=button].lrxq-btn-y,
form.lrx-quote [type=submit].lrxq-btn-y,
.lrx-quote a.lrxq-btn-y{
  background:var(--yellow);color:var(--navy);box-shadow:0 8px 20px rgba(255,199,44,.35);border-color:transparent
}
#lrx-main form.lrx-quote .lrxq-btn-y:hover,
#lrx-main form.lrx-quote .lrxq-btn-y:focus,
#lrx-main form.lrx-quote button.lrxq-btn-y:hover,
#lrx-main form.lrx-quote button.lrxq-btn-y:focus,
#lrx-main form.lrx-quote [type=button].lrxq-btn-y:hover,
#lrx-main form.lrx-quote [type=button].lrxq-btn-y:focus,
#lrx-main form.lrx-quote [type=submit].lrxq-btn-y:hover,
#lrx-main form.lrx-quote [type=submit].lrxq-btn-y:focus,
#lrer form.lrx-quote .lrxq-btn-y:hover,
#lrer form.lrx-quote .lrxq-btn-y:focus,
#lrer form.lrx-quote button.lrxq-btn-y:hover,
#lrer form.lrx-quote button.lrxq-btn-y:focus,
form.lrx-quote .lrxq-btn-y:hover,
form.lrx-quote .lrxq-btn-y:focus,
form.lrx-quote button.lrxq-btn-y:hover,
form.lrx-quote button.lrxq-btn-y:focus,
form.lrx-quote [type=button].lrxq-btn-y:hover,
form.lrx-quote [type=button].lrxq-btn-y:focus,
form.lrx-quote [type=submit].lrxq-btn-y:hover,
form.lrx-quote [type=submit].lrxq-btn-y:focus,
.lrx-quote a.lrxq-btn-y:hover,
.lrx-quote a.lrxq-btn-y:focus{
  background:var(--yellow-d);color:var(--navy)
}
#lrx-main form.lrx-quote .lrxq-btn-ghost,
#lrx-main form.lrx-quote button.lrxq-btn-ghost,
#lrx-main form.lrx-quote [type=button].lrxq-btn-ghost,
#lrer form.lrx-quote .lrxq-btn-ghost,
#lrer form.lrx-quote button.lrxq-btn-ghost,
form.lrx-quote .lrxq-btn-ghost,
form.lrx-quote button.lrxq-btn-ghost,
form.lrx-quote [type=button].lrxq-btn-ghost{
  background:#fff;color:var(--navy);border:2px solid var(--line);box-shadow:none
}
#lrx-main form.lrx-quote .lrxq-btn-ghost:hover,
#lrx-main form.lrx-quote .lrxq-btn-ghost:focus,
#lrx-main form.lrx-quote button.lrxq-btn-ghost:hover,
#lrx-main form.lrx-quote button.lrxq-btn-ghost:focus,
form.lrx-quote .lrxq-btn-ghost:hover,
form.lrx-quote .lrxq-btn-ghost:focus,
form.lrx-quote button.lrxq-btn-ghost:hover,
form.lrx-quote button.lrxq-btn-ghost:focus{
  background:var(--bg);color:var(--navy);border-color:var(--line)
}
#lrx-main form.lrx-quote .lrxq-btn:focus-visible,
#lrer form.lrx-quote .lrxq-btn:focus-visible,
form.lrx-quote .lrxq-btn:focus-visible,
.lrx-quote a.lrxq-btn:focus-visible{
  outline:3px solid var(--blue);outline-offset:2px
}
.lrxq-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0}
form.lrx-quote .lrxq-btn-block{flex:1 1 200px}

form.lrx-quote fieldset{border:0;padding:0;margin:0;min-width:0}
.lrxq-checks{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin:0;padding:0;list-style:none}
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-checks label,
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-choice label,
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-consent label,
form.lrx-quote .lrxq-checks label,
form.lrx-quote .lrxq-choice label,
form.lrx-quote .lrxq-consent label{
  display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;align-items:start;
  margin:0;padding:0;font-size:14px;font-weight:600;line-height:1.35;cursor:pointer;min-width:0
}
:is(#lrx-main,#lrer) form.lrx-quote .lrxq-consent label,
form.lrx-quote .lrxq-consent label{font-weight:500;font-size:13.5px;color:var(--text);line-height:1.45}
:is(#lrx-main,#lrer) form.lrx-quote input[type=checkbox],
:is(#lrx-main,#lrer) form.lrx-quote input[type=radio],
form.lrx-quote input[type=checkbox],form.lrx-quote input[type=radio]{
  width:18px;height:18px;min-width:18px;max-width:18px;margin:1px 0 0;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;flex:none;accent-color:var(--blue)
}
.lrxq-checks li{min-width:0}
.lrxq-choice{display:flex;gap:16px;flex-wrap:wrap;margin:0}
.lrxq-consent{margin:0}

.lrx-quote [name=_honey]{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

@container lrxq (max-width: 400px){
  .lrxq-panel{grid-template-columns:1fr}
  .lrxq-checks{grid-template-columns:1fr}
  :is(#lrx-main,#lrer) form.lrx-quote .lrxq-reg-action .lrxq-btn,
  :is(#lrx-main,#lrer) form.lrx-quote .lrxq-actions .lrxq-btn,
  form.lrx-quote .lrxq-reg-action .lrxq-btn,
  form.lrx-quote .lrxq-actions .lrxq-btn{width:100%}
}

/* 1.9.8 / 1.9.9: only the hero form uses the homepage navy card. The #quote form keeps its own card. */
#lrx-main .hero-quote form.lrx-quote.lrx-quote-card{
  background:#fff;border-radius:22px;overflow:hidden;padding:0;
  box-shadow:0 24px 60px rgba(10,27,51,.18);color:var(--ink);
}
#lrx-main .qq-in:has(form.lrx-quote-card),
#lrx-main .hero-quote .qq-in:has(form.lrx-quote-card){
  padding:0;gap:0;background:transparent;box-shadow:none;border:0;border-radius:0;
}
#lrx-main .qcard-top{
  background:linear-gradient(135deg,#163563,#0F2647);padding:22px 28px;color:#fff;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}
#lrx-main .qcard-top > div{min-width:0;flex:1}
#lrx-main .qcard-top h3{margin:0;color:#fff;font-size:28px;font-weight:700;line-height:1.2;text-wrap:balance}
#lrx-main .qcard-top p{margin:3px 0 0;font-size:13.5px;line-height:1.35;color:#BFD0EA;text-wrap:balance}
#lrx-main .qcard-top .free{
  background:var(--yellow);color:var(--navy);font-weight:800;font-size:12px;
  padding:6px 10px;border-radius:8px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;
}
#lrx-main form.lrx-quote.lrx-quote-card .lrxq-body{padding:24px 28px 22px}

@media (max-width:640px){
  #lrer form.lrx-quote{padding:20px}
  #lrx-main .qcard-top{padding:18px 20px}
  #lrx-main .qcard-top h3{font-size:18px}
  #lrx-main form.lrx-quote.lrx-quote-card .lrxq-body{padding:20px}
  #lrx-main .fcta form.lrx-quote,
  #lrx-main .sec.dark form.lrx-quote,
  .lrx-quote-wrap{padding:20px;border-radius:18px}
  #lrx-main .hero-quote form.lrx-quote.lrx-quote-card{padding:0;border-radius:18px}
}
@media (max-width:480px){
  #lrx-main .qcard-top .free{flex-shrink:0;padding:6px 8px}
}
