/* Home page quote form: an animated "Upload Plans" button and a phone field with a country flag.
   Loaded only by index.html, after style.css. */

/* phone field: the same real flag image as on the Get Estimate page */
.pe-phone-wrap{position:relative;display:flex}
.pe-phone-wrap input{padding-left:42px}
.pe-phone-flag{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:20px;height:15px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.08);pointer-events:none;font-size:0}

/* an empty required phone shows the same red outline as the other fields (the flag script wraps the input, and main.js marks the wrapper) */
.pe-phone-wrap.has-error input{border-color:#D95C5C;box-shadow:0 0 0 3px rgba(217,92,92,.10)}

/* "Upload Plans": same size and shape as Get Free Quote; the arrow bobs, a soft ring pulses and a light sweeps across */
.quote-form .field-upload{justify-content:flex-end}
.btn-upload{position:relative;overflow:hidden;gap:10px;min-width:0;background:#fff;color:var(--teal);border-color:var(--teal);animation:qu-ring 2.8s ease-out infinite}
.btn-upload .qu-ico{width:19px;height:19px;margin:-3px 0;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;animation:qu-bob 1.7s ease-in-out infinite}
.btn-upload .qu-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-upload::after{content:"";position:absolute;top:0;bottom:0;left:-45%;width:35%;background:linear-gradient(100deg,transparent,rgba(20,116,106,.22),transparent);transform:skewX(-18deg);animation:qu-shine 3.4s ease-in-out infinite;pointer-events:none}
.btn-upload:hover,.btn-upload:focus-visible{background:var(--teal);color:#fff;border-color:var(--teal);transform:translateY(-2px);box-shadow:0 14px 30px rgba(20,116,106,.28);animation:none}
.btn-upload:hover::after,.btn-upload:focus-visible::after{display:none}
.btn-upload.is-ready{background:var(--tint,#E9F3F2);animation:none}
.btn-upload.is-ready .qu-ico{animation:none}
.btn-upload.is-ready::after{display:none}
.btn-upload.is-drag{background:var(--teal);color:#fff;transform:scale(1.03);animation:none}
@keyframes qu-bob{0%,100%{transform:translateY(2px)}50%{transform:translateY(-3px)}}
@keyframes qu-ring{0%{box-shadow:0 0 0 0 rgba(20,116,106,.38)}70%,100%{box-shadow:0 0 0 12px rgba(20,116,106,0)}}
@keyframes qu-shine{0%{left:-45%}55%,100%{left:130%}}
@media (prefers-reduced-motion:reduce){.btn-upload,.btn-upload .qu-ico,.btn-upload::after{animation:none}}

/* placement: wide screens put it in the free cell above Get Free Quote; narrower screens stack it right above that button */
@media (min-width:1025px){
  .quote-form .field-submit{grid-row:2}
  .quote-form .field-upload{grid-column:3;grid-row:1;align-self:end}
}
@media (max-width:1024px){
  .quote-form .field-upload{grid-column:1 / -1;order:5}
  .quote-form .field-submit{order:6}
}
