/* 07 Request a quote. Every rule scoped under #quote. */
#quote{--qt-err:#B42318;--qt-err-bg:#FEF3F2;--qt-hover:#9FB0C6;background:var(--white);border-top:1px solid var(--line);padding-block:var(--section-y)}
#quote .qt-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "panel" "next";row-gap:clamp(36px,6vw,56px)}
#quote .qt-rail{display:contents}
#quote .qt-head{grid-area:head}
#quote .qt-next{grid-area:next}
#quote .qt-panel{grid-area:panel}
@media (min-width:960px){
  #quote .qt-grid{grid-template-columns:minmax(0,6fr) minmax(0,5fr);grid-template-areas:"rail panel";column-gap:clamp(40px,5.5vw,96px);align-items:start}
  #quote .qt-rail{display:block;grid-area:rail;position:sticky;top:140px}
}

/* Intro */
#quote .qt-tag{margin:0 0 22px 6px}
#quote .qt-title{font-size:clamp(46px,5.4vw,80px);line-height:1.12;color:var(--navy)}
#quote .qt-lead{margin-top:22px;max-width:44ch;text-wrap:pretty}
#quote .qt-short{display:flex;align-items:flex-start;gap:12px;margin-top:22px;font-size:15px;font-weight:600;color:var(--navy)}
#quote .qt-short-mark{flex:none;width:28px;height:4px;margin-top:.62em;background:var(--water);transform:skewX(var(--skew))}

/* What happens next */
#quote .qt-next{margin-top:0}
@media (min-width:960px){#quote .qt-next{margin-top:clamp(40px,5vw,56px)}}
#quote .qt-next-title{font:700 var(--fs-xs)/1.2 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
#quote .qt-steps{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--line)}
#quote .qt-steps li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
#quote .qt-steps p{color:var(--ink-soft);font-size:15px;line-height:1.55}
#quote .qt-steps strong{color:var(--navy);font-weight:600}
#quote .qt-step-n{position:relative;display:grid;place-items:center;width:28px;height:24px;margin-top:1px;font:900 italic 13px/1 var(--display);color:var(--white);isolation:isolate}
#quote .qt-step-n::before{content:"";position:absolute;inset:0;background:var(--navy);transform:skewX(var(--skew));z-index:-1}
#quote .qt-alt{margin-top:20px;font-size:15px;line-height:1.9;color:var(--ink-soft)}
#quote .qt-sample{margin-top:28px;font-size:13px;line-height:1.55;color:var(--muted);max-width:46ch}
#quote .qt-sample-tag{display:inline-block;margin-right:6px;font:700 12px/1.2 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--navy);background:var(--cloud-2);padding:3px 7px}

/* Panel */
#quote .qt-panel{position:relative;background:var(--white);border:1px solid var(--line);padding:clamp(22px,3.2vw,44px)}
#quote .qt-panel::before{content:"";position:absolute;top:-1px;left:clamp(22px,3.2vw,44px);width:96px;height:6px;background:var(--water);transform:skewX(var(--skew));transform-origin:0 0}
#quote .qt-form-head{display:flex;align-items:baseline;justify-content:space-between;gap:6px 24px;margin-bottom:24px}
#quote .qt-form-title{font-weight:700;font-size:var(--fs-lg);color:var(--navy)}
#quote .qt-form-meta{font-size:13px;color:var(--muted)}
#quote .qt-req{color:var(--water);font-weight:700}
#quote .qt-opt{margin-left:6px;font-size:12px;font-weight:500;letter-spacing:.01em;color:var(--muted)}

/* Error summary */
#quote .qt-errors{margin:0 0 24px;padding:14px 18px;background:var(--qt-err-bg);border-left:4px solid var(--qt-err)}
#quote .qt-errors:focus{outline:none}
#quote .qt-errors:focus-visible{outline:3px solid var(--water);outline-offset:3px}
#quote .qt-errors-title{font-weight:700;color:var(--qt-err);font-size:15px}
#quote .qt-errors ul{margin:6px 0 0;padding-left:18px}
#quote .qt-errors a{color:var(--qt-err);font-size:15px;text-underline-offset:3px}

/* Fieldsets */
#quote .qt-set{margin:0;padding:0;border:0;min-width:0}
#quote .qt-legend{padding:0;font-weight:600;font-size:15px;color:var(--navy)}
#quote .qt-legend-note{margin-left:6px;font-size:12px;font-weight:500;color:var(--muted)}
#quote .qt-hint{margin-top:6px;font-size:13px;line-height:1.45;color:var(--muted)}
#quote .qt-error{font-size:13px;line-height:1.4;font-weight:600;color:var(--qt-err)}
#quote .qt-error:not(:empty){margin-top:6px}

/* Interest: one consistent system, square tiles divided by hairlines */
#quote .qt-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
#quote .qt-chip--svc{grid-column:1/-1}
#quote .qt-chip{position:relative;display:block;cursor:pointer}
#quote .qt-chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
#quote .qt-chip-box{position:relative;display:flex;flex-direction:column;height:100%;padding:12px 14px 13px;border:1.5px solid var(--line);background:var(--white);transition:border-color .15s var(--ease),background-color .15s var(--ease)}
#quote .qt-chip-mark{position:absolute;top:13px;right:13px;width:16px;height:16px}
#quote .qt-chip-mark::before{content:"";position:absolute;inset:0;border:2px solid var(--qt-hover);transform:skewX(var(--skew));transition:background-color .15s var(--ease),border-color .15s var(--ease)}
#quote .qt-chip-mark::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:9px;border:solid var(--white);border-width:0 2px 2px 0;transform:rotate(45deg);opacity:0}
#quote .qt-chip-name{padding-right:22px;font-weight:600;font-size:15px;line-height:1.3;color:var(--navy)}
#quote .qt-chip-desc{margin-top:3px;font-size:13px;line-height:1.4;color:var(--muted)}
#quote .qt-chip:hover .qt-chip-box{border-color:var(--qt-hover)}
#quote .qt-chip input:checked + .qt-chip-box{border-color:var(--water);background:var(--sky)}
#quote .qt-chip input:checked + .qt-chip-box .qt-chip-mark::before{background:var(--water);border-color:var(--water)}
#quote .qt-chip input:checked + .qt-chip-box .qt-chip-mark::after{opacity:1}
#quote .qt-chip input:focus-visible + .qt-chip-box{outline:3px solid var(--water);outline-offset:2px}
#quote .qt-set.is-invalid .qt-chip-box{border-color:var(--qt-err)}

/* Text fields */
#quote .qt-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:18px 18px;margin-top:24px}
@media (min-width:600px){#quote .qt-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
#quote .qt-fields--reach{margin-top:18px}
#quote .qt-field{display:flex;flex-direction:column;min-width:0}
#quote .qt-field label{font-weight:600;font-size:15px;line-height:1.35;color:var(--navy);margin-bottom:8px}
#quote .qt-field input,#quote .qt-field textarea{width:100%;min-height:50px;padding:12px 14px;border:1.5px solid var(--line);border-radius:2px;background:var(--white);font-size:16px;line-height:1.4;color:var(--ink);transition:border-color .15s var(--ease),box-shadow .15s var(--ease)}
#quote .qt-field input::placeholder{color:#7A879A}
#quote .qt-field textarea{min-height:92px;resize:vertical}
#quote .qt-field input:hover,#quote .qt-field textarea:hover{border-color:var(--qt-hover)}
#quote .qt-field input:focus,#quote .qt-field textarea:focus{outline:none;border-color:var(--water);box-shadow:0 0 0 3px rgba(30,111,224,.22)}
#quote .qt-field input[aria-invalid="true"]{border-color:var(--qt-err)}
#quote .qt-field input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(180,35,24,.18)}
#quote .qt-field--msg{margin-top:20px}

/* Preferred contact: slanted segments echoing the logo bar */
#quote .qt-set--contact{margin-top:22px}
#quote .qt-seg{display:flex;gap:10px;margin-top:10px;padding-inline:5px;max-width:420px}
#quote .qt-seg-opt{position:relative;flex:1 1 0;min-width:0;cursor:pointer}
#quote .qt-seg-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
#quote .qt-seg-opt span{position:relative;display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 10px;font-weight:600;font-size:15px;color:var(--navy);text-align:center;isolation:isolate}
#quote .qt-seg-opt span::before{content:"";position:absolute;inset:0;border:1.5px solid var(--line);background:var(--white);transform:skewX(var(--skew));z-index:-1;transition:background-color .15s var(--ease),border-color .15s var(--ease)}
#quote .qt-seg-opt:hover span::before{border-color:var(--qt-hover)}
#quote .qt-seg-opt input:checked + span::before{background:var(--sky);border-color:var(--water)}
#quote .qt-seg-opt input:checked + span{font-weight:700}
#quote .qt-seg-opt input:focus-visible + span{outline:3px solid var(--water);outline-offset:4px}

/* Submit: the only solid navy slab in the form, so it reads as the one action */
#quote .qt-submit{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}
#quote .qt-btn{min-height:60px;padding:0 40px;font-size:16px;margin-left:6px}
#quote .qt-btn:hover::before{background:var(--water)}
#quote .qt-assure{flex:1 1 200px;font-size:14px;line-height:1.5;color:var(--muted);max-width:32ch}
#quote .qt-assure strong{color:var(--navy);font-weight:600}
@media (max-width:599px){
  #quote .qt-btn{width:calc(100% - 12px)}
  #quote .qt-chip-desc{display:none}
  #quote .qt-chip-box{padding:13px 12px}
  #quote .qt-chip-mark{top:14px;right:11px}
  #quote .qt-legend-note{display:block;margin:2px 0 0}
  #quote .qt-form-head{margin-bottom:20px}
}

/* Confirmation */
#quote .qt-done:focus{outline:none}
#quote .qt-done-tag{display:inline-flex;align-items:center;gap:10px;margin-left:6px}
#quote .qt-done-check{width:7px;height:12px;border:solid var(--white);border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translateY(-2px)}
#quote .qt-done-title{margin-top:22px;font:900 italic clamp(30px,3.6vw,46px)/1 var(--display);text-transform:uppercase;color:var(--navy)}
#quote .qt-done-title:focus{outline:none}
#quote .qt-done-title:focus-visible{outline:3px solid var(--water);outline-offset:4px}
#quote .qt-done-lede{margin-top:16px;font-size:var(--fs-lg);line-height:1.55;color:var(--ink-soft);max-width:52ch}
#quote .qt-done-lede strong{color:var(--navy)}
#quote .qt-summary{margin:28px 0 0;border-top:1px solid var(--line)}
#quote .qt-summary div{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);gap:4px 20px;padding:14px 0;border-bottom:1px solid var(--line)}
#quote .qt-summary dt{font:700 12px/1.6 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
#quote .qt-summary dd{margin:0;font-weight:600;color:var(--navy);overflow-wrap:anywhere}
@media (max-width:599px){#quote .qt-summary div{grid-template-columns:minmax(0,1fr)}}
#quote .qt-done-note{margin-top:20px;font-size:14px;line-height:1.55;color:var(--muted)}
#quote .qt-done-note strong{color:var(--navy)}
#quote .qt-done-actions{display:flex;flex-wrap:wrap;gap:16px 22px;margin-top:30px;padding-left:6px}
@media (max-width:599px){#quote .qt-done-actions .btn{width:calc(100% - 12px);padding:0 18px;text-align:center;line-height:1.2}}

#quote [hidden]{display:none!important}
#quote .qt-done-tag::before{background:var(--leaf-ink)}
