/* Cloak only the server-to-modal upgrade, never a background security refresh. */
.quote-booting .quote-modal[data-quote-cloak]{visibility:hidden!important;animation:none!important}
.quote-modal{padding:0;border:1px solid var(--line,#dbe5ef);border-radius:24px;background:var(--surface,#fff);color:var(--ink,#09213c);width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 26px 90px #00192e70}
.quote-modal::backdrop{background:rgb(17 24 39 / .5);backdrop-filter:blur(5px)}
.quote-modal .quote-card{width:100%;max-width:none;box-shadow:none;border:0;margin:0;padding:32px}
.quote-modal-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;z-index:2;margin:0;border:1px solid var(--line,#bdcde0);border-radius:50%;width:34px;height:34px;font:22px/1 sans-serif;color:var(--ink,#173658);background:var(--surface,#fff);cursor:pointer}
.quote-modal-open{overflow:hidden}.quote-modal .quote-kicker{margin-right:32px}
/* The picker uses the same .button.quote-submit classes as Send Quote Request.
   This shared component is used by both the homepage and the gallery dialog. */
.client-uploads{margin:12px 0;padding:12px;border:1px solid var(--line,#c8d9ea);border-radius:10px;background:var(--soft,#f1f8ff);min-width:0}
.client-uploads-heading{font-size:11px;font-weight:550;line-height:1.4;margin:0 0 9px;color:var(--ink,#09213c)}
.file-picker{position:relative;min-width:0}
.client-uploads .file-picker-native{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);opacity:0;white-space:nowrap}
.file-picker-button{cursor:pointer;user-select:none;touch-action:manipulation;text-align:center}
.file-picker-native:focus-visible + .file-picker-button{outline:3px solid var(--focus,#007fe5);outline-offset:5px}
.file-picker-native:disabled + .file-picker-button{opacity:.65;cursor:wait;transform:none;box-shadow:none}
.client-uploads p.client-upload-help{font-size:11px;line-height:1.5;margin:9px 0 0;color:var(--muted,#506681)}
.client-upload-feedback{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;min-width:0}
.client-upload-feedback #client-upload-status{font-size:11px;line-height:1.5;color:var(--muted,#506681);margin:0;min-width:0;overflow-wrap:anywhere}
.client-upload-feedback #client-upload-status.is-error{color:var(--error,#b52236)}
.client-upload-clear{flex:none;font-size:11px;line-height:1.4;min-height:32px;padding:6px 0;white-space:nowrap}
.client-upload-files{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:6px;max-height:158px;overflow-y:auto;overscroll-behavior:contain;min-width:0}
.client-upload-file{display:flex;align-items:baseline;gap:10px;padding:7px 9px;background:var(--surface,#fff);border:1px solid var(--line,#d5e1ed);border-radius:6px;font-size:11px;line-height:1.4;min-width:0}
.client-upload-file-name{min-width:0;flex:1;overflow-wrap:anywhere;unicode-bidi:plaintext;color:var(--ink,#09213c)}
.client-upload-file-size{flex:none;color:var(--muted,#506681);white-space:nowrap;font-variant-numeric:tabular-nums}
.client-uploads.has-error{border-color:var(--error,#b52236)}
.client-uploads progress{display:block;width:100%;height:8px;margin-top:9px;accent-color:var(--accent,#058ee6)}
@media(max-width:540px){.client-uploads-heading{font-size:12px}.client-upload-feedback{align-items:flex-start}.client-upload-clear{min-height:36px}}
@media(forced-colors:active){#quote-form .quote-submit{background:ButtonFace;color:ButtonText;border:1px solid ButtonText}.file-picker-native:disabled + .file-picker-button{color:GrayText;border-color:GrayText}.file-picker-native:focus-visible + .file-picker-button{outline-color:Highlight}}

@media(max-width:600px){.quote-modal .quote-card{padding:25px 18px}.quote-modal{max-height:calc(100dvh - 20px)}}
@media(prefers-reduced-motion:no-preference){.quote-modal[data-quote-enhanced="1"][open]{animation:quote-appear .18s ease-out}@keyframes quote-appear{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

/* Identical form dimensions and theme surfaces on home and gallery. */
.quote-modal:not([open]){display:none!important}
.quote-modal[open]{display:block}
/* Authored themes may change appearance, never the dialog's modal mechanics. */
html .quote-modal:not([open]){display:none!important}
html .quote-modal:modal{position:fixed!important;inset:0!important;margin:auto!important;max-height:calc(100dvh - 36px)!important;overflow-y:auto!important}
.quote-modal .quote-card{max-width:none;min-width:0}
.quote-modal-close:focus-visible{outline:3px solid var(--focus,#048be5);outline-offset:3px}
.hero-quote-entry{display:flex;align-items:center;justify-content:center;min-width:0;padding:32px 12px}
.hero-quote-entry .request-quote-trigger{min-height:64px;max-width:350px;font-size:19px;border-radius:12px;box-shadow:0 16px 46px #00193250;border:1px solid #ffffff40}
.hero-quote-entry .request-quote-trigger .icon{width:22px;height:22px}
@media(max-width:1000px){.hero-quote-entry{padding:0 20px 32px}.hero-quote-entry .request-quote-trigger{max-width:460px;width:100%;font-size:18px;min-height:58px}}

/* Show inputs immediately. Only submission waits for fresh security on later openings. */
.quote-modal .icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.quote-modal .quote-submit .icon{width:19px;height:19px}
.quote-modal .form-reassurance .icon{width:12px;height:12px}
.quote-modal :is(button,a){transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out}
.quote-modal .button{transition:transform .18s ease,box-shadow .18s ease}
/* One entrance on the dialog itself. Security loading -> ready must never fade the form again. */
@media(prefers-reduced-motion:reduce){.quote-modal *{animation:none!important;transition:none!important}}

/* Page-specific gallery focus styles must not change the canonical quote form. */
#quote-modal :is(a,button,summary):focus-visible{outline:3px solid var(--focus);outline-offset:5px}
#quote-modal :is(input,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Compact shared service selection: desktop 3, tablet 2, phone 1. */
#quote-form .service-picker{margin:0 0 10px;padding:0;min-width:0}
#quote-form .service-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:2px}
#quote-form .service-chip{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;min-width:0;min-height:36px;padding:6px 8px;margin:0;box-sizing:border-box;line-height:1.4}
#quote-form .service-toggle-name{min-width:0;overflow-wrap:anywhere}
@media(max-width:1023px){#quote-form .service-chips{grid-template-columns:repeat(2,minmax(0,1fr))}#quote-form .service-chip{min-height:38px}}
@media(max-width:600px){#quote-form .service-chips{grid-template-columns:minmax(0,1fr)}#quote-form .service-chip{min-height:42px}}

/* The master toggle is progressive enhancement, not an extra submitted service. */
#quote-form .service-chip[hidden]{display:none!important}



/* Full-sentence Patio-style choices wrap inside the clickable tile. */
#quote-form .quote-contact-options{display:grid;gap:10px;margin:12px 0}
#quote-form .quote-contact-option{display:grid;gap:5px;margin:0;min-width:0}
#quote-form .quote-contact-option .custom-checkbox-label{width:100%;min-width:0}
#quote-form .quote-contact-option .custom-checkbox-label>span{overflow-wrap:anywhere;text-transform:none}
#quote-form .quote-contact-option .custom-checkbox-label:has(input:checked) .required-mark{color:inherit}
#quote-form .quote-contact-option .custom-checkbox-label:has(input[aria-invalid=true]){border-color:var(--error,#b52236)}


/* Stack both consent states in one sizing cell so changing copy cannot move the next field. */
#quote-form .consent-wrap .quote-consent-copy{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;flex:1 1 0;min-width:0}
#quote-form .consent-wrap .quote-consent-copy>span{display:block;grid-area:1/1;min-width:0}
#quote-form .consent-wrap .quote-consent-reserve{visibility:hidden;pointer-events:none;user-select:none}




/* Native public quote controls: never replaced by Tom Select. */
#quote-form select.quote-native-select{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;display:block;
 width:100%;max-width:100%;min-width:0;min-height:44px;
 padding:10px 42px 10px 14px;border:1px solid var(--line,#cbd5e1);border-radius:12px;
 color:var(--ink,#0f172a);background-color:var(--soft,#f8fafc);
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
 /* Keep later theme background shorthands from tiling or stretching the arrow. */
 background-repeat:no-repeat!important;
 background-position:right 1rem center!important;
 background-size:1.25rem 1.25rem!important;
 font:inherit;font-size:14px;line-height:1.5;cursor:pointer;
 transition:border-color .18s,box-shadow .18s,background-color .18s;
}
#quote-form select.quote-native-select:focus-visible{
 outline:2px solid var(--focus,#3b82f6);outline-offset:2px;
 border-color:var(--focus,#3b82f6);background-color:var(--surface,#fff);
}
#quote-form select.quote-native-select:disabled{opacity:.6;cursor:not-allowed}
#quote-form select.quote-native-select[aria-invalid=true]{border-color:var(--error,#b52236)}
#quote-form select.quote-native-select option{color:var(--ink,#0f172a);background:var(--surface,#fff)}
html[data-theme=dark] #quote-form select.quote-native-select,
html.dark #quote-form select.quote-native-select{
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23cbd5e1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
}
#quote-form select.quote-native-select[multiple]{appearance:auto;background-image:none;padding-right:14px}
#quote-form .quote-modal-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
 width:100%;margin:20px 0 0;padding:16px 0 0;border-top:1px solid var(--line,#dbe5ef);
}
#quote-form .quote-modal-actions:has([data-quote-cancel][hidden]){grid-template-columns:minmax(0,1fr)}
#quote-form .quote-modal-actions>.btn{
 display:flex;align-items:center;justify-content:center;gap:8px;
 width:100%;min-width:0;min-height:44px;margin:0;padding:12px 10px;
 white-space:normal;text-align:center;font-size:14px;line-height:1.35;
}
#quote-form .quote-modal-actions>.btn[hidden]{display:none}
#quote-form .quote-modal-actions .submit-label{min-width:0;overflow-wrap:anywhere}
#quote-form .quote-modal-actions .icon{flex-shrink:0}
.quote-modal-close svg{width:18px;height:18px}
.vt-live-home #quote-modal .quote-card{max-width:none;margin:0;border:0;box-shadow:none}
.quote-dialog-entry .btn{margin-top:16px}
@media(forced-colors:active){
 #quote-form select.quote-native-select{appearance:auto;background-image:none;border:1px solid ButtonText}
}


