/* Scoped: the active WordPress theme should not change the popup's appearance. */
#afqp-modal, #afqp-modal * { box-sizing: border-box; }
#afqp-modal {
  --afqp-blue: #1650ff;
  --afqp-navy: #112d64;
  --afqp-dark: #173242;
  --afqp-muted: #53627f;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 21, 40, .58);
  opacity: 0;
  transition: opacity .2s ease;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--afqp-dark);
}
#afqp-modal[hidden] { display: none !important; }
#afqp-modal.afqp-visible { opacity: 1; }
body.afqp-no-scroll { overflow: hidden !important; }
#afqp-modal .afqp-dialog {
  width: min(900px, 100%);
  max-height: min(740px, calc(100dvh - 36px));
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  background: #fff;
  border-radius: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 22px 90px rgba(5, 19, 39, .24);
  overscroll-behavior: contain;
  outline: none;
}
#afqp-modal .afqp-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #07132a;
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
  font-weight: 400;
  box-shadow: none;
}
#afqp-modal .afqp-close:hover { background: #f3f6fb; color: var(--afqp-blue); }
#afqp-modal .afqp-close:focus-visible,
#afqp-modal .afqp-form input:focus-visible,
#afqp-modal .afqp-form select:focus-visible,
#afqp-modal .afqp-submit:focus-visible { outline: 3px solid #93b0ff; outline-offset: 2px; }
#afqp-modal .afqp-left {
  min-width: 0;
  padding: 39px 40px 27px;
  background: #fff;
}
#afqp-modal .afqp-eyebrow {
  margin: 0 0 24px;
  color: #5c6b87;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .20em;
  line-height: 1.5;
}
#afqp-modal .afqp-heading {
  margin: 0 0 24px;
  padding: 0;
  color: var(--afqp-dark);
  font-size: clamp(26px, 2.5vw, 30px);
  line-height: 1.24;
  letter-spacing: -.045em;
  font-weight: 800;
  text-transform: none;
}
#afqp-modal .afqp-description {
  margin: 0 0 25px;
  color: var(--afqp-muted);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: .01em;
}
#afqp-modal .afqp-form { margin: 0; padding: 0; }
#afqp-modal .afqp-form .afqp-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
#afqp-modal .afqp-form .afqp-field-row--amount {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
}
#afqp-modal .afqp-form .afqp-field { min-width: 0; }
#afqp-modal .afqp-form .afqp-help {
  color: #697791;
  font-size: 11px;
  line-height: 1.4;
  margin: -12px 0 15px;
}
#afqp-modal .afqp-form label {
  display: block;
  width: auto;
  margin: 0 0 7px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #10273d;
  background: transparent;
  text-transform: none;
}
#afqp-modal .afqp-form label span { color: #10273d; }
#afqp-modal .afqp-form input,
#afqp-modal .afqp-form select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin: 0 0 15px;
  padding: 11px 15px;
  background: white;
  background-image: none;
  border: 1px solid #cdd3e0;
  border-radius: 0;
  box-shadow: none;
  color: #183044;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  transition: border-color .15s ease;
}
#afqp-modal .afqp-form input::placeholder { color: #a9b2c1; }
#afqp-modal .afqp-form input:focus,
#afqp-modal .afqp-form select:focus { border-color: #2360ff; outline-offset: 1px; }
#afqp-modal .afqp-form select {
  padding-right: 34px;
  appearance: auto;
  cursor: pointer;
}
#afqp-modal .afqp-form input[type="email"] { margin-bottom: 19px; }
#afqp-modal .afqp-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 2px;
  background: var(--afqp-blue);
  box-shadow: none;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
#afqp-modal .afqp-submit:hover { background: #073ddc; color: #fff; }
#afqp-modal .afqp-submit:active { transform: translateY(1px); }
#afqp-modal .afqp-fineprint {
  margin: 15px 0 0;
  color: #687795;
  font-size: 12px;
  line-height: 1.55;
}
#afqp-modal .afqp-error {
  margin: 0 0 12px;
  padding: 9px 11px;
  background: #fff0f0;
  border-left: 3px solid #cf3942;
  color: #a52632;
  font-size: 13px;
}
#afqp-modal .afqp-error[hidden] { display: none !important; }
#afqp-modal .afqp-right {
  min-width: 0;
  padding: 58px 28px 35px;
  background: linear-gradient(135deg, #e9edf6, #d9deed);
  color: var(--afqp-navy);
}
#afqp-modal .afqp-logo {
  display: block;
  width: auto;
  max-width: min(240px, 80%);
  max-height: 70px;
  height: auto;
  margin: 0 0 27px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#afqp-modal .afqp-brand-text { margin: 0 0 29px; }
#afqp-modal .afqp-brand-name {
  color: #333b46;
  font-size: clamp(29px, 3.3vw, 43px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.07em;
  white-space: nowrap;
}
#afqp-modal .afqp-brand-dot {
  display: inline-block;
  color: var(--afqp-blue);
  font-size: .65em;
  transform: translate(.05em,-.48em);
}
#afqp-modal .afqp-brand-tagline {
  margin-top: 5px;
  color: #252a33;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}
#afqp-modal .afqp-side-title {
  max-width: 320px;
  margin: 0 0 23px;
  padding: 0;
  color: var(--afqp-navy);
  font-size: clamp(25px, 2.5vw, 30px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.043em;
  text-transform: none;
}
#afqp-modal .afqp-truck {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 366 / 210;
  max-width: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  object-fit: cover;
  background: #73b6dd;
}
#afqp-modal .afqp-regions {
  margin: 16px 0 0;
  color: var(--afqp-navy);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
}
@media (max-width: 760px) {
  #afqp-modal { padding: 12px; align-items: center; }
  #afqp-modal .afqp-dialog { width: min(490px, 100%); max-height: calc(100dvh - 24px); grid-template-columns: 1fr; }
  #afqp-modal .afqp-left { padding: 33px 25px 27px; }
  #afqp-modal .afqp-eyebrow { margin-bottom: 20px; font-size: 11px; }
  #afqp-modal .afqp-heading { font-size: 27px; max-width: 360px; margin-bottom: 15px; }
  #afqp-modal .afqp-description { font-size: 13px; margin-bottom: 20px; }
  #afqp-modal .afqp-right { padding: 28px 25px 30px; }
  #afqp-modal .afqp-side-title { font-size: 25px; max-width: 320px; }
  #afqp-modal .afqp-logo { max-height: 60px; }
  #afqp-modal .afqp-truck { max-height: 240px; }
  #afqp-modal .afqp-close { right: 9px; top: 9px; }
}
@media (max-width: 420px) {
  #afqp-modal .afqp-left { padding: 27px 19px 24px; }
  #afqp-modal .afqp-heading { font-size: 25px; }
  #afqp-modal .afqp-eyebrow { padding-right: 34px; }
  #afqp-modal .afqp-form input, #afqp-modal .afqp-form select { height: 45px; min-height: 45px; margin-bottom: 12px; }
  #afqp-modal .afqp-submit { height: 52px; min-height: 52px; }
  #afqp-modal .afqp-form .afqp-field-row { gap: 10px; }
  #afqp-modal .afqp-form .afqp-help { margin-top: -8px; }
  #afqp-modal .afqp-right { padding: 25px 19px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #afqp-modal, #afqp-modal .afqp-submit { transition: none; }
}

#afqp-modal .afqp-fallback { margin: 9px 0 0; color: #394b6c; font-size: 12px; line-height: 1.5; }
#afqp-modal .afqp-fallback[hidden] { display: none !important; }
#afqp-modal .afqp-fallback a { color: #1146db; text-decoration: underline; font-weight: 600; }
#afqp-modal .afqp-fallback a:focus-visible { outline: 3px solid #93b0ff; outline-offset: 2px; }

/* Required status is controlled in WordPress settings. */
#afqp-modal .afqp-form label .afqp-required { color: #bf2134; font-weight: 700; }

/* v1.4: same form can be embedded on a WordPress page without an overlay. */
#afqp-modal.afqp-inline {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0;
  opacity: 1;
  background: transparent;
  transition: none;
}
#afqp-modal.afqp-inline .afqp-dialog {
  width: 100%;
  max-height: none;
  overflow: visible;
  border: 1px solid #e1e5ed;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(5, 19, 39, .08);
}
@media (max-width: 760px) {
  #afqp-modal.afqp-inline .afqp-dialog {
    width: 100%;
    max-height: none;
    grid-template-columns: 1fr;
  }
}

/* v1.5: Theme-independent floating call-to-action, shown only in button mode. */
#afqp-float-button, #afqp-float-button * { box-sizing: border-box; }
#afqp-float-button {
  appearance: none;
  position: fixed;
  z-index: 2147482000;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 24px);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: #f1f1f1;
  color: #576478;
  font: 500 13px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(14,34,44,.13);
  transition: transform .18s ease, box-shadow .18s ease;
}
#afqp-float-button .afqp-float-label {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 15px;
  color: #536273;
}
#afqp-float-button .afqp-float-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #3fc75c;
  color: #fff;
}
#afqp-float-button .afqp-float-icon svg {
  display: block;
  width: 25px;
  height: 25px;
  stroke: #fff;
  fill: none;
}
#afqp-float-button:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(14,34,44,.19); background: #fff; }
#afqp-float-button:focus-visible { outline: 3px solid #174fff; outline-offset: 4px; }
@media (max-width: 480px) {
  #afqp-float-button { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  #afqp-float-button .afqp-float-label { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { #afqp-float-button { transition: none; } }
