/* Make contact-form pop-ups match the Contact Us page's embedded form.
   Scoped to pop-ups containing an Aqueris contact form; excludes newsletter-only modals.
   Applies to existing Gutenberg pages without replacing their editable content. */
body .aq-modal .aq-modal-panel:has(.contact-form){
  background:linear-gradient(115deg,#596980,#394353)!important;
  border-radius:17px!important;
  padding:clamp(24px,3vw,44px)!important;
  color:#fff!important;
  width:min(100%,900px);
}
body .aq-modal .aq-modal-panel:has(.contact-form)>h2,
body .aq-modal .aq-modal-panel:has(.contact-form) #aq-modal-title{
  margin:0 42px 22px 0!important;
  text-align:left!important;
  color:#fff!important;
  font-size:clamp(26px,2.4vw,38px)!important;
  font-weight:600!important;
}
body .aq-modal .aq-modal-panel:has(.contact-form) .aq-modal-brand{
  display:block;width:175px;max-width:50%;height:auto;
  object-fit:contain;margin:0 0 22px!important;filter:brightness(0) invert(1);
}
body .aq-modal .aq-modal-panel .contact-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  padding:0!important;margin:0!important;
  background:transparent!important;
  border-radius:0!important;overflow:visible!important;
}
body .aq-modal .aq-modal-panel .contact-form>label{
  display:block!important;min-width:0!important;
  color:#fff!important;font-size:12px!important;font-weight:700!important;
}
body .aq-modal .aq-modal-panel .contact-form input:not([type=checkbox]),
body .aq-modal .aq-modal-panel .contact-form textarea{
  box-sizing:border-box!important;display:block!important;width:100%!important;
  min-width:0!important;background:#fff!important;color:#394353!important;
  border:1px solid #d8dde3!important;border-radius:8px!important;
  padding:12px!important;margin-top:6px!important;
  box-shadow:none!important;outline-color:#006aff!important;
}
body .aq-modal .aq-modal-panel .contact-form textarea[name=message]{height:118px!important;min-height:118px!important}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-picker{
  display:block!important;position:relative!important;height:118px;margin-top:6px!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-picker>select{
  position:absolute!important;width:1px!important;height:1px!important;
  margin:0!important;padding:0!important;opacity:0!important;pointer-events:none!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-trigger{
  box-sizing:border-box!important;display:flex!important;justify-content:space-between!important;
  align-items:flex-start!important;gap:12px!important;width:100%!important;height:118px!important;
  margin:0!important;padding:12px 14px!important;
  background:#fff!important;color:#394353!important;
  border:1px solid #d8dde3!important;border-radius:8px!important;
  font-size:13px!important;font-weight:600!important;line-height:1.65!important;
  text-align:left!important;text-transform:none!important;letter-spacing:normal!important;
  box-shadow:none!important;transform:none!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-trigger svg{
  width:18px!important;height:18px!important;flex:none!important;stroke:#394353!important;fill:none!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-options{
  position:absolute!important;z-index:35!important;top:calc(100% + 8px)!important;
  left:0!important;right:0!important;padding:8px!important;
  border-radius:12px!important;background:#fff!important;box-shadow:0 15px 45px #0005!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-options>button{
  display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;
  padding:12px!important;border:0!important;background:transparent!important;
  color:#394353!important;text-align:left!important;text-transform:none!important;
  letter-spacing:normal!important;box-shadow:none!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-options>button:hover{background:#f0f3f7!important}
body .aq-modal .aq-modal-panel .contact-form .aq-solution-options small{display:block!important}
body .aq-modal .aq-modal-panel .contact-form .full,
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-choice,
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-interests{grid-column:1/-1!important}
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-choice select,
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-interests select{
  width:100%!important;min-height:46px!important;background:#fff!important;
  color:#394353!important;border:1px solid #d8dde3!important;border-radius:8px!important;
}
body .aq-modal .aq-modal-panel .contact-form button[type=submit]{
  justify-self:start!important;background:#006aff!important;
  border:1px solid #006aff!important;color:#fff!important;
}
body .aq-modal .aq-modal-panel .contact-form button[type=submit]:hover{
  background:#0055d4!important;border-color:#0055d4!important;color:#fff!important;
}
body .aq-modal .aq-modal-panel .contact-form .form-note{color:#e0e6ee!important;font-size:12px!important;align-self:center!important}
@media(max-width:650px){
  body .aq-modal .aq-modal-panel .contact-form{grid-template-columns:1fr!important}
  body .aq-modal .aq-modal-panel .contact-form .full,
  body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-choice,
  body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-interests{grid-column:1!important}
}

/* Keep the imported pop-up consent control identical to the Contact Us page. */
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-choice {
  display:block!important;grid-column:1/-1!important;width:100%!important;
  color:#fff!important;font-weight:700!important;font-size:12px!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-choice select {
  display:block!important;width:100%!important;margin-top:8px!important;
  min-height:46px!important;padding:10px 34px 10px 12px!important;
  background:#fff!important;color:#394353!important;border:1px solid #d8dde3!important;
  border-radius:8px!important;font-weight:400!important;
}
body .aq-modal .aq-modal-panel .contact-form .aq-newsletter-interests[hidden] {display:none!important}
