/* Quote modal — refreshed to match the bright NextGen design (loaded site-wide, after page styles) */
.ng-quote-modal{--q-brand:var(--s-brand,#0089d1);--q-brand-dark:var(--s-brand-dark,#065f96);--q-navy:var(--s-navy,#062033);--q-hivis:var(--s-hivis,#ffd400);--q-ink:#0d1b26;--q-muted:#5b6b78;--q-line:#d9e4ec}
.ng-quote-modal .ng-quote-modal__backdrop{background:rgba(6,32,51,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.ng-quote-modal.is-open .ng-quote-dialog{animation:ngq-in .22s ease-out}
@keyframes ngq-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ng-quote-modal.is-open .ng-quote-dialog{animation:none}}

.ng-quote-modal .ng-quote-dialog{width:min(100%,980px);grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);border-radius:24px;overflow:hidden auto;background:#fff;box-shadow:0 40px 90px rgba(3,20,34,.35)}

/* Close */
.ng-quote-modal .ng-quote-close{top:16px;right:16px;width:40px;height:40px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid var(--q-line);background:#fff;color:var(--q-ink);font-size:24px;line-height:1;cursor:pointer;box-shadow:0 6px 16px rgba(6,32,51,.12);transition:background .15s,color .15s,transform .15s}
.ng-quote-modal .ng-quote-close:hover{background:var(--q-brand);border-color:var(--q-brand);color:#fff;transform:rotate(90deg)}
.ng-quote-modal .ng-quote-close:focus-visible{outline:3px solid var(--q-hivis);outline-offset:2px}

/* Left intro panel */
.ng-quote-modal .ng-quote-intro{position:relative;display:flex;flex-direction:column;justify-content:center;gap:0;padding:56px 40px;background:radial-gradient(420px 320px at 100% 0%,rgba(255,255,255,.14),rgba(255,255,255,0) 70%),linear-gradient(160deg,var(--q-brand) 0%,var(--q-brand-dark) 55%,var(--q-navy) 100%);color:#fff;overflow:hidden}
.ng-quote-modal .ng-quote-intro:before{content:"";position:absolute;left:0;top:0;right:0;height:6px;background:linear-gradient(90deg,var(--q-hivis) 0 34%,rgba(255,255,255,.35) 34%)}
.ng-quote-modal .ng-quote-intro:after{content:"";position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border-radius:50%;border:30px solid rgba(255,255,255,.07)}
.ng-quote-modal .ng-quote-intro .ng-kicker{display:inline-flex;align-self:flex-start;margin:0 0 16px!important;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff!important;font-size:11.5px;font-weight:800;letter-spacing:.1em}
.ng-quote-modal .ng-quote-intro h2{font-size:46px!important;line-height:.98!important;letter-spacing:.005em;color:#fff!important;max-width:10ch}
.ng-quote-modal .ng-quote-intro>p:not(.ng-kicker){margin:16px 0 0!important;font-size:15.5px;line-height:1.65;color:rgba(255,255,255,.88)!important}
.ng-quote-modal .ng-quote-intro small{position:relative;z-index:1;display:flex;align-items:flex-start;gap:10px;margin-top:28px;padding:14px 16px;border-radius:14px;background:rgba(6,32,51,.28);border:1px solid rgba(255,255,255,.16);font-size:13.5px;font-weight:600;line-height:1.5;color:#fff}
.ng-quote-modal .ng-quote-intro small:before{content:"";flex:none;width:20px;height:20px;margin-top:1px;border-radius:50%;background:var(--q-hivis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062033' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}

/* Form side */
.ng-quote-modal .ng-quote-form-wrap{padding:44px 40px 40px}
.ng-quote-modal .ng-quote-form{gap:16px 18px}
.ng-quote-modal .ng-quote-field{gap:7px;min-width:0}
.ng-quote-modal .ng-quote-field label{font-size:13px;font-weight:800;letter-spacing:0;text-transform:none;color:#1d2b36}
.ng-quote-modal .ng-quote-field input,.ng-quote-modal .ng-quote-field select,.ng-quote-modal .ng-quote-field textarea{min-height:48px;padding:12px 14px!important;border:1px solid #cfdbe5!important;border-radius:12px!important;background:#f8fbfd!important;font-size:15px;line-height:1.4;color:var(--q-ink)!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s,background .15s}
.ng-quote-modal .ng-quote-field textarea{min-height:110px;resize:vertical}
.ng-quote-modal .ng-quote-field input::placeholder,.ng-quote-modal .ng-quote-field textarea::placeholder{color:#9aa8b3}
.ng-quote-modal .ng-quote-field input:hover,.ng-quote-modal .ng-quote-field select:hover,.ng-quote-modal .ng-quote-field textarea:hover{border-color:#b3c6d4!important}
.ng-quote-modal .ng-quote-field input:focus,.ng-quote-modal .ng-quote-field select:focus,.ng-quote-modal .ng-quote-field textarea:focus{outline:none;border-color:var(--q-brand)!important;background:#fff!important;box-shadow:0 0 0 4px rgba(0,137,209,.15)!important}
.ng-quote-modal .ng-quote-submit{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:54px;margin-top:4px;padding:0 24px;border:0;border-radius:14px;background:var(--q-brand);color:#fff!important;font-size:15.5px;font-weight:800;letter-spacing:.02em;text-transform:none;cursor:pointer;box-shadow:0 12px 26px rgba(0,137,209,.28);transition:background .15s,transform .15s,box-shadow .15s}
.ng-quote-modal .ng-quote-submit:hover{background:var(--q-brand-dark);transform:translateY(-1px);box-shadow:0 16px 30px rgba(0,137,209,.34)}
.ng-quote-modal .ng-quote-submit:focus-visible{outline:3px solid var(--q-hivis);outline-offset:2px}
.ng-quote-modal .ng-quote-notice{display:block;margin-bottom:18px;padding:14px 16px;border-radius:12px;font-size:14px;font-weight:700;line-height:1.5}
.ng-quote-modal .ng-quote-notice--success{background:#e8f8ee;border:1px solid #a9e2bd;color:#14653a}
.ng-quote-modal .ng-quote-notice--error{background:#fdecec;border:1px solid #f3b6b6;color:#9b1c1c}

/* Tablet */
@media (max-width:960px) and (min-width:761px){
  .ng-quote-modal .ng-quote-intro{padding:48px 30px}
  .ng-quote-modal .ng-quote-intro h2{font-size:38px!important}
  .ng-quote-modal .ng-quote-form-wrap{padding:40px 28px 32px}
}

/* ---------- iPhone / touch fixes (all forms on the site) ----------
   iOS Safari zooms into any field with text smaller than 16px and does not zoom back,
   which makes the page look broken. Force 16px on touch-size screens, and stop date /
   select fields from overflowing their column. */
@media (max-width:1024px){
  input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea{font-size:16px!important}
}
@media (max-width:760px){
  html,body.ng-quote-open{overflow-x:hidden}
  .ng-quote-modal,.ng-quote-modal *{box-sizing:border-box}
  .ng-quote-modal .ng-quote-dialog{max-width:100vw;overflow-x:hidden}
  .ng-quote-modal .ng-quote-form,.ncx-form{width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)!important}
  .ng-quote-modal .ng-quote-field,.ncx-field{min-width:0;max-width:100%}
  .ng-quote-modal .ng-quote-field input,.ng-quote-modal .ng-quote-field select,.ng-quote-modal .ng-quote-field textarea,
  .ncx-field input,.ncx-field select,.ncx-field textarea{display:block;width:100%!important;max-width:100%!important;min-width:0!important;line-height:1.35!important}
  .ng-quote-modal .ng-quote-field input[type=date],.ncx-field input[type=date]{-webkit-appearance:none;appearance:none;min-height:50px;text-align:left}
  .ng-quote-modal .ng-quote-field input[type=date]::-webkit-date-and-time-value,.ncx-field input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0}
  .ng-quote-modal .ng-quote-field select,.ncx-field select{-webkit-appearance:none;appearance:none;padding-right:40px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b78' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:16px!important}
}

/* Mobile: full-screen sheet */
@media (max-width:760px){
  .ng-quote-modal .ng-quote-dialog{border-radius:0;box-shadow:none;grid-template-columns:1fr}
  .ng-quote-modal .ng-quote-intro{padding:64px 20px 26px}
  .ng-quote-modal .ng-quote-intro h2{font-size:36px!important;max-width:12ch}
  .ng-quote-modal .ng-quote-intro>p:not(.ng-kicker){font-size:14.5px}
  .ng-quote-modal .ng-quote-intro small{margin-top:18px;font-size:13px}
  .ng-quote-modal .ng-quote-intro:after{display:none}
  .ng-quote-modal .ng-quote-close{top:max(12px,env(safe-area-inset-top));right:12px}
  .ng-quote-modal .ng-quote-form-wrap{padding:24px 18px calc(32px + env(safe-area-inset-bottom))}
  .ng-quote-modal .ng-quote-form{gap:14px}
  .ng-quote-modal .ng-quote-field input,.ng-quote-modal .ng-quote-field select,.ng-quote-modal .ng-quote-field textarea{font-size:16px}
}
