/* Scoped corrections; existing page colors, layout and typography remain authoritative. */
#ts-quote-request fieldset,#ts-quote-request .ts-quote-form__field{min-width:0}
#ts-quote-request input,#ts-quote-request textarea,#ts-quote-request select{box-sizing:border-box;max-width:100%}
#ts-quote-request :focus-visible{outline:3px solid #0047bb;outline-offset:3px}
#ts-quote-request .ts-quote-form__turnstile{min-width:0;max-width:100%}
#ts-quote-feedback{font-size:16px;line-height:1.5}
#ts-quote-request button:disabled{cursor:wait;opacity:.65}
@media(max-width:600px){
.ts-quote-form-section .ts-quote-form__container{max-width:100%;box-sizing:border-box;padding-left:16px;padding-right:16px}
#ts-quote-request .ts-quote-form__grid{grid-template-columns:minmax(0,1fr)}
#ts-quote-request input,#ts-quote-request select,#ts-quote-request textarea{font-size:16px;min-height:44px}
#ts-quote-request label,#ts-quote-request .ts-quote-form__help,#ts-quote-request .ts-quote-form__notice{font-size:16px;line-height:1.5}
#ts-quote-request button{min-height:44px}
}


/* Progressive quote steps: hidden content stays hidden regardless of theme CSS. */
#ts-quote-request [hidden]{display:none!important}
#ts-quote-request .ts-quote-form__step-actions{margin:18px 0 28px}
#ts-quote-request .ts-quote-form__edit{margin:0 0 18px;padding:10px 14px;border:1px solid #0047bb;border-radius:4px;background:#fff;color:#0047bb;font-weight:600;cursor:pointer}
#ts-quote-request .ts-quote-form__edit:hover{background:#f1f5fc}

#ts-quote-request .ts-quote-form__declined{padding:12px;border:1px solid #dc2626;border-left:4px solid #b91c1c;border-radius:6px;background:#fef2f2;color:#231f20;font-size:13px;line-height:1.4;margin:12px 0 20px}
#ts-quote-request .ts-quote-form__declined p{margin:5px 0 0}

/* Prequalification: one full-width field per row, including on desktop. */
#ts-quote-request #ts-prequal-step .ts-quote-form__grid{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:18px;}
#ts-quote-request #ts-prequal-step .ts-quote-form__field{grid-column:1 / -1!important;width:100%;min-width:0;}
#ts-quote-request #ts-prequal-step select{display:block;width:100%;max-width:100%;} 

/* Separate the conditional multi-location question from the preceding select. */
#ts-quote-request #ts-prequal-multi-wrap:not([hidden]){margin-top:20px!important;}

/* Multi-step quote request: retain all existing fields and submission handlers. */
#ts-quote-request .ts-quote-wizard-progress{margin:6px 0 20px;font-size:13px;font-weight:600;color:#231f20}
#ts-quote-request .ts-quote-wizard-track{height:6px;background:#e5e7eb;border-radius:99px;margin-top:8px;overflow:hidden}
#ts-quote-request #ts-quote-wizard-bar{display:block;width:50%;height:100%;background:#ffcd00;border-radius:99px;transition:width .2s ease}
#ts-quote-request .ts-quote-wizard-navigation{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:20px}
#ts-quote-request .ts-quote-wizard-navigation #ts-quote-step-next{margin-left:auto}
#ts-quote-request .ts-quote-wizard-back{padding:11px 18px;border:1px solid #231f20;background:#fff;color:#231f20;border-radius:4px;font-weight:600;cursor:pointer}
#ts-quote-request .ts-quote-wizard-panel[hidden],#ts-quote-request .ts-quote-form__footer[hidden],#ts-quote-request .ts-quote-form__turnstile[hidden]{display:none!important}

/* v1.9.47: Required-fields note in heading; Back and Submit on opposite sides. */
#ts-quote-request #ts-quote-documents-step .ts-quote-form__fieldset{position:relative}
#ts-quote-request #ts-quote-documents-step .ts-quote-step-required{position:absolute;right:0;top:0;margin:0;font-size:12px;color:#555;line-height:1.5}
#ts-quote-request #ts-quote-documents-step legend{padding-right:125px;max-width:100%;box-sizing:border-box}
#ts-quote-request #ts-quote-documents-step .ts-quote-form__fieldset > .ts-quote-form__field:has(#ts-files){margin-top:28px!important}
#ts-quote-request #ts-quote-documents-step .ts-quote-form__footer{display:block!important;margin-top:24px!important}
#ts-quote-request #ts-quote-documents-step .ts-quote-form__notice{width:100%;box-sizing:border-box;margin:0;text-align:center}
#ts-quote-request .ts-quote-wizard-navigation #ts-quote-step-submit{margin-left:auto;width:auto;max-width:100%}
@media(max-width:480px){#ts-quote-request #ts-quote-documents-step .ts-quote-step-required{position:static;text-align:right;margin:0 0 12px}#ts-quote-request #ts-quote-documents-step legend{padding-right:0}#ts-quote-request .ts-quote-wizard-navigation #ts-quote-step-submit{max-width:70%}}
