/* =========================================================
   MY Remodeling Inc. | Shared estimate form and responsive modal
   Scoped styles: the original site layout and colors are retained.
   ========================================================= */
.estimate-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.estimate-honeypot{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.mr-estimate-form,.mr-estimate-form *,.mr-popup,.mr-popup *{box-sizing:border-box}
.mr-estimate-form{min-width:0;max-width:100%}
.mr-estimate-form .mr-estimate-fields{min-width:0;max-width:100%}
.mr-estimate-form .mr-estimate-col{min-width:0}
.mr-estimate-form .mr-estimate-subject-col{display:none}
.mr-estimate-form.contact-page__form .mr-estimate-subject-col{display:block}
.mr-estimate-form .mr-estimate-privacy{display:none}
.mr-estimate-form.contact-page__form .mr-estimate-privacy{display:block}
.mr-estimate-form.contact-one__form .mr-estimate-col{flex:0 0 100%;max-width:100%}
.mr-estimate-form .mr-estimate-result{margin-top:12px}
.mr-estimate-form .mr-estimate-input-box{min-width:0;max-width:100%}
.mr-estimate-form .mr-estimate-input-box input,
.mr-estimate-form .mr-estimate-input-box select,
.mr-estimate-form .mr-estimate-input-box textarea{max-width:100%;min-width:0;font-family:inherit}

/* Do not show a duplicate Nice Select wrapper if old markup is cached.
   The active service field is the original native SELECT only. */
.mr-estimate-form .mr-estimate-col--service .nice-select{display:none!important}

/* The service picker is a real native SELECT, styled like the page's inputs.
   Avoid Nice Select wrappers and the browser's default white field. */
.mr-estimate-form.contact-one__form .mr-estimate-input-box select,
.mr-estimate-form.contact-page__form .mr-estimate-input-box select{
  display:block;width:100%;height:60px;appearance:none;-webkit-appearance:none;
  background-color:rgba(var(--builza-white-rgb),.03);
  border:1px solid rgba(var(--builza-white-rgb),.10);
  border-radius:var(--builza-bdr-radius);
  color:rgba(var(--builza-primary-rgb),.60);
  padding:0 46px 0 30px;outline:none;font-size:16px;font-weight:400;line-height:1.4;font-family:inherit;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b5b9c5' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 20px center;cursor:pointer;
}
.mr-estimate-form.contact-page__form .mr-estimate-input-box select{height:57px;padding-left:20px}
.mr-estimate-form.contact-one__form .mr-estimate-input-box select option,
.mr-estimate-form.contact-page__form .mr-estimate-input-box select option{color:#212633;background:#fff}
.mr-estimate-form .mr-estimate-input-box select:focus-visible{border-color:#f7be7f;outline:2px solid rgba(247,190,127,.30);outline-offset:1px}
.mr-estimate-form .mr-estimate-input-box select:invalid{color:#9ca3b3}
.mr-estimate-form .mr-estimate-input-box select:valid{color:#d9dfe9}
.contact-form-validated .error:not(input):not(select):not(textarea){font-size:13px;line-height:1.5;display:block;margin:5px 0;color:#b93131}
.contact-one__form .error:not(input):not(select):not(textarea){color:#ffd6c7}
.ajax-response:empty{display:none}
.ajax-response{margin-top:15px;font-size:15px;line-height:1.5}
.ajax-response.success{color:#24834a}
.ajax-response.error{color:#b93131}
.contact-one__right .ajax-response.success{color:#a8f1ba}
.contact-one__right .ajax-response.error{color:#ffb4a5}

/* Popup: no viewport overflow, including small screens and browser zoom. */
body.mr-estimate-open{overflow:hidden}
.mr-popup-overlay{
  position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;
  justify-content:center;padding:clamp(10px,2.5vw,24px);
  background:rgba(0,0,0,.76);opacity:0;visibility:hidden;
  transition:opacity .25s ease,visibility .25s ease;overflow:hidden;
}
.mr-popup-overlay.is-open{opacity:1;visibility:visible}
.mr-popup-overlay[aria-hidden="true"]{pointer-events:none}
.mr-popup-overlay[aria-hidden="false"]{pointer-events:auto}
.mr-popup{
  position:relative;flex:0 1 600px;min-width:0;width:100%;max-width:600px;
  max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:#af8962 #151b27;
  padding:25px clamp(17px,4vw,32px) 22px;
  border:2px solid #f7be7f;border-radius:16px;
  background:#0e121d;color:#fff;text-align:center;
  box-shadow:0 25px 60px rgba(0,0,0,.5);
}
.mr-popup-overlay.is-open .mr-popup{animation:mrPopIn .3s ease both}
@keyframes mrPopIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.mr-popup__close{
  position:sticky;top:0;float:right;z-index:10;
  width:36px;height:36px;min-width:36px;margin:-14px -17px -22px 0;
  padding:0;display:flex;align-items:center;justify-content:center;
  border:1px solid #f7be7f;border-radius:50%;background:#1b2130;color:#fff;
  font-size:26px;font-weight:400;line-height:1;cursor:pointer;
}
.mr-popup__close:hover,.mr-popup__close:focus-visible{background:#a46b38;color:#fff;outline:2px solid #fff;outline-offset:2px}
.mr-popup__logo{display:block;max-width:100%;width:auto;height:85px;object-fit:contain;margin:0 auto 11px}
.mr-popup__title{margin:0 0 10px;color:#fff;font-size:clamp(23px,3.5vw,29px);font-weight:700;line-height:1.15;text-transform:uppercase}
.mr-popup__title span{color:#f7be7f}
.mr-popup__assurance{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px 10px;margin:0 0 13px}
.mr-popup__assurance span{
  display:inline-flex;align-items:center;gap:7px;padding:5px 11px;
  border:1px solid rgba(247,190,127,.4);border-radius:100px;
  background:rgba(247,190,127,.08);color:#f3e4d5;
  font-size:12px;font-weight:600;line-height:1.3;white-space:normal;
}
.mr-popup__assurance i{color:#f7be7f;font-size:13px}
.mr-popup__text{margin:0 0 16px;color:#cfd3dc;font-size:15px;line-height:1.4}
.mr-popup__welcome[hidden],.mr-popup__form-area[hidden]{display:none!important}
.mr-popup__form-area{width:100%;min-width:0;clear:both}
.mr-popup__form-intro{font-size:14px;line-height:1.4;color:#cfd3dc;margin:0 0 13px}
.mr-popup .thm-btn{max-width:100%;font-size:16px;line-height:1.3}
.mr-popup__welcome .thm-btn{padding:13px 22px}
.mr-popup__phone{display:inline-block;margin-top:10px;color:#f7be7f;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.mr-popup__phone:hover{color:#fff}

/* Same DOM form, compact two-column desktop presentation inside modal. */
.mr-popup__form{display:block;width:100%;min-width:0;max-width:100%;text-align:left}
.mr-popup__form .mr-estimate-fields{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px!important;width:100%;max-width:100%;min-width:0;
  margin:0!important;padding:0!important;
}
.mr-popup__form .mr-estimate-fields>.mr-estimate-col{
  display:block;float:none!important;flex:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:0!important;margin:0!important;
}
.mr-popup__form .mr-estimate-fields>.mr-estimate-subject-col{display:none!important}
.mr-popup__form .mr-estimate-col--message{grid-column:1/-1}
.mr-popup__form .mr-estimate-input-box,
.mr-popup__form .mr-estimate-input-box.text-message-box{
  display:block;height:auto!important;width:100%!important;max-width:100%;min-width:0;margin:0!important;
}
.mr-popup__form .mr-estimate-input-box input,
.mr-popup__form .mr-estimate-input-box select,
.mr-popup__form .mr-estimate-input-box textarea{
  box-sizing:border-box!important;display:block!important;float:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:46px!important;min-height:46px!important;
  margin:0!important;padding:10px 13px!important;
  border:1px solid rgba(255,255,255,.27)!important;border-radius:8px!important;
  background:#1c2332!important;color:#fff!important;
  font:400 15px/1.3 Arial,sans-serif!important;
  outline:0!important;box-shadow:none;
}
.mr-popup__form .mr-estimate-input-box input::placeholder,
.mr-popup__form .mr-estimate-input-box textarea::placeholder{color:#c1c6d2!important;opacity:1}
.mr-popup__form .mr-estimate-input-box select{
  cursor:pointer;appearance:auto!important;-webkit-appearance:menulist!important;
  color-scheme:dark;background:#1c2332!important;
}
.mr-popup__form .mr-estimate-input-box select:invalid{color:#c1c6d2!important}
.mr-popup__form .mr-estimate-input-box select option{background:#1c2332;color:#fff}
.mr-popup__form .mr-estimate-input-box textarea{
  height:72px!important;min-height:72px!important;max-height:180px!important;
  resize:vertical;line-height:1.5!important;
}
.mr-popup__form .mr-estimate-input-box input:focus,
.mr-popup__form .mr-estimate-input-box textarea:focus,
.mr-popup__form .mr-estimate-input-box select:focus{
  border-color:#f7be7f!important;box-shadow:0 0 0 2px rgba(247,190,127,.2)!important;
}
.mr-popup__form .mr-estimate-btn-box{margin-top:10px;min-width:0}
.mr-popup__form .mr-estimate-btn-box .thm-btn{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:100%;min-height:47px;padding:10px 16px!important;
  border:0;cursor:pointer;font-size:16px;white-space:normal;
}
.mr-popup__form .mr-estimate-btn-box .thm-btn span{flex-shrink:0}
.mr-popup__form .mr-estimate-result{margin-top:10px;line-height:1.45;text-align:left;font-size:14px}
.mr-popup__form .mr-estimate-result.success{color:#a8f1ba}
.mr-popup__form .mr-estimate-result.error{color:#ffb4a5}
.mr-popup__form .mr-estimate-privacy{display:none!important}
.mr-popup__form label.error{color:#ffb4a5!important;font-size:12px;margin:4px 0 0;line-height:1.25}
.mr-popup__form input.error,.mr-popup__form select.error,.mr-popup__form textarea.error{border-color:#ed998e!important}

@media(max-width:575px){
  .mr-popup-overlay{padding:8px}
  .mr-popup{width:100%;max-height:calc(100dvh - 16px);padding:17px 15px 18px;border-radius:13px}
  .mr-popup__close{margin:-7px -6px -24px 0;width:34px;height:34px;min-width:34px}
  .mr-popup__logo{height:65px;margin-bottom:7px}
  .mr-popup__title{font-size:clamp(20px,6vw,25px);margin-bottom:8px;padding:0 12px}
  .mr-popup__assurance{gap:6px;margin-bottom:10px}
  .mr-popup__assurance span{font-size:11px;padding:5px 8px}
  .mr-popup__form-intro{font-size:13px;margin-bottom:10px}
  .mr-popup__form .mr-estimate-fields{grid-template-columns:minmax(0,1fr);gap:8px!important}
  .mr-popup__form .mr-estimate-input-box input,
  .mr-popup__form .mr-estimate-input-box select,
  .mr-popup__form .mr-estimate-input-box textarea{height:43px!important;min-height:43px!important;padding:9px 12px!important;font-size:14px!important}
  .mr-popup__form .mr-estimate-input-box textarea{height:65px!important;min-height:65px!important}
  .mr-popup__form .mr-estimate-btn-box .thm-btn{min-height:44px;font-size:15px}
}
@media(max-height:700px) and (min-width:576px){
  .mr-popup__logo{height:60px;margin-bottom:6px}
  .mr-popup{padding-top:18px;padding-bottom:17px}
  .mr-popup__title{font-size:23px}
  .mr-popup__assurance{margin-bottom:8px}
  .mr-popup__form-intro{margin-bottom:8px}
  .mr-popup__form .mr-estimate-fields{gap:7px!important}
}
@media(prefers-reduced-motion:reduce){.mr-popup-overlay,.mr-popup-overlay.is-open .mr-popup{transition:none;animation:none}}
