/* Shared layout for the dedicated inquiry page and homepage dialog. */
#quote-enquiry,#quote-form-container,#quote-enquiry .form-row,#quote-enquiry label,#quote-enquiry fieldset{min-width:0;max-width:100%}
#quote-enquiry{width:100%;display:grid;gap:18px}
#quote-enquiry .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#quote-enquiry label{display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
#quote-enquiry input,#quote-enquiry select,#quote-enquiry textarea{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;font-size:16px;line-height:1.5;min-height:48px}
#quote-enquiry select{white-space:nowrap;text-overflow:ellipsis;padding-right:32px}
#quote-enquiry .property-address{min-inline-size:0;margin-inline:0;width:100%}
#quote-enquiry legend{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#quote-enquiry small,#quote-enquiry p{max-width:100%;overflow-wrap:anywhere}
#quote-enquiry button[type=submit]{width:100%;min-height:48px;white-space:normal;justify-content:center}
#address-search,#inquiry-captcha{width:100%;min-width:0;max-width:100%}
#address-search gmp-place-autocomplete{display:block;width:100%;max-width:100%;min-width:0}
#quote-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:28px;overscroll-behavior:contain;overflow-y:auto}
#quote-dialog h2{padding-right:28px;overflow-wrap:anywhere}
#quote-enquiry .spam-field{position:absolute;width:1px;height:1px;overflow:hidden;left:-10000px}
@media(max-width:640px){
 #quote-enquiry .form-row{grid-template-columns:minmax(0,1fr)}
 #quote-dialog{padding:22px 16px}
 #quote-enquiry .property-address{padding:14px 10px}
 #quote-enquiry label{font-size:14px}
 #quote-enquiry .button:hover{transform:none}
}
#quote-enquiry .form-row>label:only-child{grid-column:1/-1}
#quote-enquiry input[type=hidden]{display:none}

/* Prevent intrinsic address-widget widths from expanding grid tracks. */
#quote-enquiry{grid-template-columns:minmax(0,1fr)}
#quote-enquiry .property-address{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0;min-inline-size:0;max-width:100%;width:auto;justify-self:stretch;margin:0}
#quote-enquiry .property-address>*{box-sizing:border-box;min-width:0;min-inline-size:0;max-width:100%}
#quote-enquiry .property-address legend{width:auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#address-search{box-sizing:border-box;contain:inline-size;width:100%;min-width:0}
#address-search gmp-place-autocomplete{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
@media(max-width:640px){
 #quote-enquiry .property-address .form-row{grid-template-columns:minmax(0,1fr)}
 #quote-enquiry .property-address label{width:100%;margin-bottom:0}
}

#quote-enquiry[hidden],.inquiry-success[hidden]{display:none!important}
.inquiry-success{padding:32px 8px;text-align:center;max-width:100%;overflow-wrap:anywhere;outline:none}
.inquiry-success .success-check{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 24px;border-radius:50%;background:#e8f5d8;color:#166534;font-size:40px;font-weight:700}
.inquiry-success h2,#quote-dialog .inquiry-success h2{font-size:clamp(24px,5vw,32px);line-height:1.25;padding:0;margin:0 0 18px;color:#0b3d2e}
.inquiry-success p{color:#52654d;line-height:1.6}.inquiry-success .button{margin-top:16px;max-width:100%;white-space:normal}

.confirmation-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.confirmation-actions .button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box;min-height:48px}
@media(max-width:640px){.confirmation-actions{flex-direction:column}.confirmation-actions .button{width:100%;margin-top:0}}
