/* Sitewide "Get A Free Quote" modal - Figma: node 227:2 (desktop 477:4 / mobile 227:8) */

body.has-quote-modal-open {
  overflow: hidden;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.quote-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(79, 167, 194, 0.2);
}
.quote-modal__dialog {
  color-scheme: light;
  position: relative;
  width: 100%;
  max-width: 31.5rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.quote-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #d1d6e0;
  border-radius: 1rem;
  cursor: pointer;
  z-index: 1;
}
.quote-modal__close:hover {
  border-color: #8a94a6;
}
.quote-modal__body {
  padding: 2.5rem;
}
@media screen and (max-width: 767px) {
  .quote-modal__dialog {
    max-height: 97dvh;
  }
  .quote-modal__body {
    padding: 1rem 1.25rem 0.75rem;
  }
  .quote-modal__header {
    margin-bottom: 0.625rem;
  }
  .quote-modal__badges {
    gap: 0.375rem;
  }
}
.quote-modal__header {
  margin-bottom: 1.25rem;
}
.quote-modal__title {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #0f2942;
  margin: 0 0 0.5rem;
}
@media screen and (max-width: 767px) {
  .quote-modal__title {
    font-size: 1.375rem;
  }
  .quote-modal__field-label {
    margin-bottom: 0.25rem;
  }
  .quote-modal__form .l-input input,
  .quote-modal__form .l-select select {
    height: 2.25rem;
  }
  .quote-modal__form .form__row {
    margin-bottom: 0.5rem !important;
  }
  .quote-modal__form .l-select {
    margin-bottom: 0.5rem;
  }
  .quote-modal__body .quote-modal__form .l-btn {
    height: 2.5rem;
  }
  .quote-modal__body .quote-modal__fine-print {
    margin: 0.375rem 0 0;
  }
}
.quote-modal__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  color: #5e6c84;
}
.quote-modal__badge-divider {
  color: #d1d6e0;
}

/* Field labels injected client-side (js/quote-modal.js) to match Figma without altering the shared CF7 template */
.quote-modal__field-label {
  display: block;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #0f2942;
  margin-bottom: 0.375rem;
}

.quote-modal__form .l-input input,
.quote-modal__form .l-select select,
.quote-modal__form .l-textarea textarea {
  border-color: #d1d6e0;
  border-radius: 0.5rem;
  color: #0f2942;
}
.quote-modal__form .l-input input::placeholder,
.quote-modal__form .l-select select,
.quote-modal__form .l-textarea textarea::placeholder {
  color: #8a94a6;
  opacity: 1;
}
.quote-modal__form .l-input input,
.quote-modal__form .l-select select {
  height: 2.625rem;
}
.quote-modal__form .l-textarea textarea {
  height: 5rem;
  min-height: 5rem;
  max-height: 5rem;
  resize: none;
}
.quote-modal__form .form__row {
  margin-bottom: 0.875rem !important;
}
.quote-modal__form .l-select {
  margin-bottom: 0.875rem;
}
.quote-modal__form .l-select::after {
  top: 65%;
}
.quote-modal__form .fom__btn-wrap {
  text-align: center;
}
.quote-modal__form .fom__btn-wrap .form__btn {
  display: block;
  width: 100%;
}
.quote-modal__body .quote-modal__form .l-btn {
  display: flex;
  width: 100%;
  height: 3.125rem;
  padding: 0;
  border-radius: 1.5625rem;
  background-color: #d2a34f;
  border-color: #d2a34f;
}
.quote-modal__body .quote-modal__form .l-btn:hover {
  background-color: #bd8f3f;
  border-color: #bd8f3f;
}
.quote-modal__body .quote-modal__fine-print {
  font-family: "Nunito", sans-serif;
  font-size: 0.6875rem;
  color: #5e6c84;
  text-align: center;
  margin: 0.75rem 0 0;
}
.quote-modal__fine-print a {
  color: #5e6c84;
  text-decoration: underline;
}