.afq,
.afq * {
  box-sizing: border-box;
}

.afq {
  --afq-blue: #083d66;
  --afq-blue-dark: #052f50;
  --afq-blue-soft: #eaf3f9;
  --afq-yellow: #f1c84b;
  --afq-ink: #17273a;
  --afq-muted: #667587;
  --afq-line: #d8e1e9;
  --afq-bg: #f4f7f9;
  --afq-white: #fff;
  --afq-danger: #b42318;
  width: 100%;
  color: var(--afq-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.afq__shell {
  width: min(100%, 920px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--afq-white);
  border: 1px solid var(--afq-line);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(8, 61, 102, 0.12);
}

.afq__header {
  position: relative;
  padding: 30px 40px 27px;
  overflow: hidden;
  color: var(--afq-white);
  background:
    radial-gradient(circle at 92% 0, rgba(255, 255, 255, 0.13) 0 95px, transparent 96px),
    linear-gradient(135deg, var(--afq-blue-dark), var(--afq-blue));
}

.afq__header::after {
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  content: "";
  border: 28px solid rgba(241, 200, 75, 0.11);
  border-radius: 50%;
}

.afq__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  color: var(--afq-yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.afq__header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--afq-white);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.afq__intro {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 17px;
}

.afq__benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 23px;
  margin-top: 16px;
  color: var(--afq-white);
  font-size: 14px;
  font-weight: 650;
}

.afq__benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.afq__benefits b {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: var(--afq-blue-dark);
  background: var(--afq-yellow);
  border-radius: 50%;
  font-size: 13px;
}

.afq__form {
  padding: 25px 40px 32px;
  background: var(--afq-bg);
}

.afq__form[hidden],
.afq__success[hidden],
.afq__address-search[hidden] {
  display: none !important;
}

.afq__section {
  min-width: 0;
  margin: 0 0 17px;
  padding: 20px 22px;
  background: var(--afq-white);
  border: 1px solid var(--afq-line);
  border-radius: 16px;
}

.afq__section legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 0 0 2px;
  padding: 0 8px 0 0;
  color: var(--afq-blue-dark);
  font-size: 19px;
  font-weight: 800;
}

.afq__section legend span {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--afq-blue-dark);
  background: var(--afq-yellow);
  border-radius: 50%;
  font-size: 15px;
}

.afq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 16px;
  margin-top: 14px;
}

.afq__grid--address {
  grid-template-columns: minmax(0, 2fr) minmax(130px, 1fr);
}

.afq__grid--optional {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
}

.afq__field {
  min-width: 0;
}

.afq__field--full {
  grid-column: 1 / -1;
}

.afq__field--state {
  grid-column: span 1;
}

.afq__field label {
  display: block;
  margin-bottom: 7px;
  color: var(--afq-ink);
  font-size: 14px;
  font-weight: 750;
}

.afq__field label span {
  color: var(--afq-muted);
  font-size: 12px;
  font-weight: 500;
}

.afq em,
.afq__required em {
  color: var(--afq-danger);
  font-style: normal;
}

.afq input[type="text"],
.afq input[type="email"],
.afq input[type="tel"],
.afq textarea,
.afq select {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  color: var(--afq-ink);
  background: var(--afq-white);
  border: 1px solid #b9c7d3;
  border-radius: 9px;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.afq textarea {
  min-height: 104px;
  resize: vertical;
}

.afq input[readonly] {
  color: #536273;
  background: #eef2f5;
}

.afq__address-search {
  margin: 0 0 12px;
}

.afq__address-search span {
  display: block;
  margin-bottom: 6px;
  color: #536273;
  font-size: 13px;
}

.afq__address-search gmp-place-autocomplete {
  display: block;
  width: 100%;
  --gmpx-color-surface: #fff;
  --gmpx-color-on-surface: #17273a;
  --gmpx-font-size-base: 16px;
}

.afq input:focus,
.afq textarea:focus,
.afq select:focus {
  border-color: var(--afq-blue);
  box-shadow: 0 0 0 3px rgba(8, 61, 102, 0.13);
}

.afq input[aria-invalid="true"],
.afq textarea[aria-invalid="true"],
.afq select[aria-invalid="true"] {
  border-color: var(--afq-danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.afq__hint,
.afq__privacy,
.afq__required {
  margin: 7px 0 0;
  color: var(--afq-muted);
  font-size: 12px;
}

.afq__dropzone {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  background: var(--afq-blue-soft);
  border: 2px dashed #7fa8c4;
  border-radius: 12px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.afq__dropzone.is-dragging {
  background: #dbeefa;
  border-color: var(--afq-blue);
  transform: translateY(-1px);
}

.afq__file-input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.afq__dropzone-copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px;
  color: var(--afq-blue-dark);
  text-align: center;
  pointer-events: none;
}

.afq__camera {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  place-items: center;
  color: var(--afq-white);
  background: var(--afq-blue);
  border-radius: 50%;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.afq__dropzone-copy strong {
  font-size: 16px;
}

.afq__dropzone-copy > span:not(.afq__camera) {
  color: var(--afq-muted);
  font-size: 13px;
}

.afq__dropzone-copy small {
  margin-top: 6px;
  color: var(--afq-muted);
  font-size: 11px;
}

.afq__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.afq__preview {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 8px 31px 8px 8px;
  overflow: hidden;
  background: var(--afq-white);
  border: 1px solid var(--afq-line);
  border-radius: 9px;
}

.afq__preview img,
.afq__preview-icon {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: var(--afq-blue-soft);
  border-radius: 6px;
}

.afq__preview-icon {
  display: grid;
  place-items: center;
  color: var(--afq-blue);
  font-size: 11px;
  font-weight: 800;
}

.afq__preview-name {
  min-width: 0;
  overflow: hidden;
  color: var(--afq-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.afq__remove-file {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: #7a8794;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.afq__remove-file:hover,
.afq__remove-file:focus {
  background: var(--afq-danger);
}

.afq__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 1px;
  color: var(--afq-ink);
  cursor: pointer;
  font-size: 13px;
}

.afq__optional {
  margin: 0 0 17px;
  overflow: hidden;
  background: var(--afq-white);
  border: 1px solid var(--afq-line);
  border-radius: 12px;
}

.afq__optional summary {
  position: relative;
  display: block;
  padding: 15px 44px 15px 18px;
  color: var(--afq-blue-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.afq__optional summary::-webkit-details-marker {
  display: none;
}

.afq__optional summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "+";
  color: var(--afq-blue);
  font-size: 23px;
  font-weight: 500;
  transform: translateY(-52%);
}

.afq__optional[open] summary::after {
  content: "−";
}

.afq__optional summary span {
  color: var(--afq-muted);
  font-size: 12px;
  font-weight: 500;
}

.afq__optional[open] summary {
  border-bottom: 1px solid var(--afq-line);
}

.afq__optional .afq__grid {
  padding: 0 18px 18px;
}

.afq__consent input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--afq-blue);
}

.afq__privacy {
  margin-left: 29px;
}

.afq__submit {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 24px;
  color: var(--afq-white);
  background: var(--afq-blue);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 61, 102, 0.19);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.afq__submit:hover,
.afq__submit:focus {
  color: var(--afq-white);
  background: var(--afq-blue-dark);
  box-shadow: 0 10px 24px rgba(8, 61, 102, 0.24);
  transform: translateY(-1px);
}

.afq__submit.is-inactive,
.afq__submit:disabled {
  color: #fff;
  background: #b7c2cc;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.afq__submit.is-ready,
.afq__submit.is-ready .afq__submit-label {
  color: #fff;
  background: #1e8f45;
  box-shadow: 0 8px 20px rgba(30, 143, 69, 0.28);
}

.afq__submit.is-ready:hover,
.afq__submit.is-ready:focus,
.afq__submit.is-ready:hover .afq__submit-label,
.afq__submit.is-ready:focus .afq__submit-label {
  color: #fff;
  background: #167538;
  box-shadow: 0 10px 24px rgba(22, 117, 56, 0.3);
}

.afq__form.is-sending .afq__submit {
  cursor: wait;
  opacity: 0.85;
}

.afq__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: afq-spin 0.8s linear infinite;
}

.afq__form.is-sending .afq__spinner {
  display: block;
}

.afq__required {
  text-align: center;
}

.afq__status {
  display: none;
  margin: 0 0 18px;
  padding: 13px 15px;
  color: #7a271a;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
}

.afq__status.is-visible {
  display: block;
}

.afq__success {
  padding: 62px 36px 66px;
  text-align: center;
}

.afq__success[hidden] {
  display: none;
}

.afq__success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 19px;
  place-items: center;
  color: var(--afq-blue-dark);
  background: var(--afq-yellow);
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
}

.afq__success h3 {
  margin: 0;
  color: var(--afq-blue-dark);
  font-size: 28px;
  line-height: 1.2;
}

.afq__success p {
  margin: 12px auto 0;
  color: var(--afq-muted);
}

.afq__success a {
  color: var(--afq-blue);
  font-weight: 750;
}

.afq__new-request {
  margin-top: 24px;
  padding: 10px 17px;
  color: var(--afq-blue);
  background: transparent;
  border: 1px solid var(--afq-blue);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.afq__website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@keyframes afq-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .afq__shell {
    border-radius: 14px;
  }

  .afq__header {
    padding: 25px 20px 23px;
  }

  .afq__header h2 {
    font-size: 34px;
  }

  .afq__intro {
    font-size: 15px;
  }

  .afq__benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .afq__form {
    padding: 14px 10px 22px;
  }

  .afq__section {
    margin-bottom: 12px;
    padding: 17px 13px;
    border-radius: 12px;
  }

  .afq__section legend {
    font-size: 17px;
  }

  .afq__grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .afq__grid--address,
  .afq__grid--optional {
    grid-template-columns: 1fr;
  }

  .afq__optional {
    margin-bottom: 12px;
  }

  .afq__field,
  .afq__field--full,
  .afq__field--state,
  .afq__field--zip {
    grid-column: auto;
  }

  .afq__success {
    padding: 48px 22px 52px;
  }

  .afq__success h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .afq *,
  .afq *::before,
  .afq *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
