/* Shared quote dialog for the homepage and product pages. */
body:has(dialog.modal[open]){overflow:hidden}
dialog.modal{--bg2:#0e1014;--brd:rgba(255,255,255,.06);--fb:'Manrope',system-ui,sans-serif;position:fixed;inset:0;z-index:150;display:none;align-items:center;justify-content:center;width:100%;height:100dvh;max-width:100%;max-height:100%;margin:0;border:0;padding:16px;background:transparent;overflow:hidden;color-scheme:dark;font:400 16px/1.65 var(--fb)}
dialog.modal[open]{display:flex}
dialog.modal::backdrop{background:rgba(0,0,0,.72);backdrop-filter:none;-webkit-backdrop-filter:none}
.modal [hidden],.modal input[type="hidden"]{display:none!important}
.modal .sheet{display:flex;flex-direction:column;width:600px;max-width:100%;max-height:calc(100dvh - 32px);overflow:hidden;border-radius:8px;background:var(--bg2);border:1px solid #30343c;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.modal .sh-hd{display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;gap:16px;padding:16px 20px;border-bottom:1px solid var(--brd)}
.modal .sh-hd h2{font:700 22px/1.35 var(--fb);margin:0;color:#fff}
.modal .modal-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:0;border-radius:6px;background:transparent;color:#cbd0d8;font:400 28px/1 var(--fb);cursor:pointer}
.modal .modal-close:hover{background:#272b33;color:#fff}
.modal form.lf{display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:0;margin:0}
.modal .sh-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#4e5561 var(--bg2);scrollbar-width:thin;padding:20px}
.modal .lead-product{margin:0 0 18px;padding-bottom:16px;border-bottom:1px solid var(--brd);color:#cbd0d8;font:500 15px/1.55 var(--fb);overflow-wrap:anywhere}
.modal .lead-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.modal .lead-grid>div{min-width:0}
.modal .lead-grid .full{grid-column:1/-1}
.modal form.lf label{display:block;margin-bottom:6px;color:#cbd0d8;font:500 13px/1.4 var(--fb)}
.modal .lead-required{color:#f5a623}
.modal form.lf input,.modal form.lf select,.modal form.lf textarea{display:block;min-width:0;width:100%;min-height:44px;padding:10px 12px;border-radius:6px;border:1px solid #3a3f49;background:#090a0c;color:#fff;font:400 16px/1.4 var(--fb);transition:border-color .15s,box-shadow .15s;scroll-margin:16px}
.modal form.lf input::placeholder,.modal form.lf textarea::placeholder{color:#8c94a1;opacity:1}
.modal form.lf input:focus,.modal form.lf select:focus,.modal form.lf textarea:focus{outline:none;border-color:#f5a623;box-shadow:0 0 0 2px rgba(245,166,35,.15)}
.modal form.lf.is-validated :invalid{border-color:#ee8b82}
.modal form.lf textarea{min-height:68px;resize:vertical;max-height:180px}
.modal .lead-extra{margin-top:18px;border-top:1px solid var(--brd)}
.modal .lead-extra summary{padding:13px 0;min-height:44px;cursor:pointer;color:#cbd0d8;font-size:14px;font-weight:600}
.modal .lead-extra summary::marker{color:#f5a623}
.modal .lead-extra[open] summary{margin-bottom:4px}
.modal .sh-ft{flex:0 0 auto;padding:16px 20px;border-top:1px solid var(--brd);background:var(--bg2)}
.modal form.lf .polc{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;font-size:12px;line-height:1.5;cursor:pointer}
.modal form.lf .polc input{flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:#f5a623;cursor:pointer}
.modal .lead-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
.modal .lead-response{margin:0;color:#a7adb8;font:400 12px/1.5 var(--fb)}
.modal .lead-submit{min-height:44px;flex-shrink:0;padding:11px 20px;border:0;border-radius:6px;background:#f5a623;color:#111;font:600 14px/1.5 var(--fb);box-shadow:none;cursor:pointer}
.modal .lead-submit:hover{background:#f7b84e;box-shadow:none;transform:none}
.modal .lead-submit:disabled{opacity:.65;cursor:wait;transform:none}
.modal .fmsg{margin:12px 0 0;color:#ffb4ab;font:400 13px/1.5 var(--fb)}
.modal .lead-success{padding:24px 20px;outline:none}
.modal .lead-success p{margin:0 0 20px;color:#cbd0d8;font-size:16px;line-height:1.6}
.modal form.lf .lead-honeypot{position:absolute;width:1px;height:1px;min-height:0;opacity:0;pointer-events:none;clip-path:inset(50%)}
@media(max-width:480px){
  dialog.modal{padding:12px}
  .modal .sheet{max-height:calc(100dvh - 24px)}
  .modal .sh-hd{padding:12px 16px;gap:8px}
  .modal .sh-hd h2{font-size:20px}
  .modal .sh-body,.modal .sh-ft{padding:16px}
  .modal .lead-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .modal .lead-actions{flex-direction:column-reverse;gap:8px;align-items:stretch}
  .modal .lead-response{text-align:center;font-size:11px}
}
