/* =====================================================================
   Get a Quote page (get-a-quote.php). Classes start with .qt-.
   Hero uses .ab-* / .ct-hero; the form card uses .contact-* (contact-home.css).
   ===================================================================== */
.qt-section {
  padding: 0 0 100px;
  background: #ffffff;
}
/* card overlaps the bottom of the hero, like the contact page cards */
.qt-card {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}

/* perks list in the dark panel */
.qt-perks {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.qt-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}
.qt-perk-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 22px -10px rgba(232, 49, 138, 0.7);
}
.qt-perks b {
  display: block;
  margin-top: 1px;
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.qt-perks small {
  display: block;
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  overflow-wrap: anywhere;
}
.qt-perks small a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.qt-perks small a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* service dropdown: styled like the text fields */
.contact-fields .qt-select select {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 46px;
  border-radius: 14px;
  border: 1px solid #e4e2ee;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a9fb2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center,
    #f8f7fc;
  -webkit-appearance: none;
          appearance: none;
  font-family: var(--text-font);
  font-size: 15px;
  color: #12141c;
  cursor: pointer;
  outline: none;
  transition: border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.contact-fields .qt-select select:invalid {
  color: #9a9fb2;
}
.contact-fields .qt-select select option {
  color: #12141c;
}
.contact-fields .qt-select select:focus {
  border-color: rgba(232, 49, 138, 0.5);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(232, 49, 138, 0.1);
}
/* the template's nice-select plugin must not replace this dropdown */
.contact-fields .qt-select .nice-select {
  display: none;
}

@media (max-width: 991.98px) {
  .qt-card {
    margin-top: -36px;
  }
  .qt-section {
    padding-bottom: 70px;
  }
}

/* dropdown: same text start and background as the other fields */
.contact-fields .qt-select select {
  padding-left: 58px;
  background-color: #ffffff;
}

/* overlap fix: the card's negative margin was pulling the whole white section up
   over the hero; keep the section's top strip transparent so the card overlaps the dark hero */
.qt-section {
  position: relative;
  z-index: 2;
  padding-top: 1px; /* stops the card's margin collapsing into the section */
  background: linear-gradient(transparent 0, transparent 47px, #ffffff 47px);
}
.qt-card {
  margin-top: -46px;
}
@media (max-width: 991.98px) {
  .qt-section {
    background: linear-gradient(transparent 0, transparent 37px, #ffffff 37px);
  }
  .qt-card {
    margin-top: -36px;
  }
}

/* no overlap: same space above the card as below it */
.qt-section {
  padding: 100px 0;
  background: #ffffff;
}
.qt-card {
  margin-top: 0;
}
.ab-hero.ct-hero.qt-hero {
  padding-bottom: 70px;
}
@media (max-width: 991.98px) {
  .qt-section {
    padding: 70px 0;
    background: #ffffff;
  }
  .qt-card {
    margin-top: 0;
  }
  .ab-hero.ct-hero.qt-hero {
    padding-bottom: 60px;
  }
}
@media (max-width: 575.98px) {
  .ab-hero.ct-hero.qt-hero {
    padding-bottom: 56px;
  }
}

/* =====================================================================
   Branded service dropdown (built by the script on get-a-quote.php)
   ===================================================================== */
.qt-select.is-enhanced select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.qt-dd-btn {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 58px;
  border-radius: 14px;
  border: 1px solid #e4e2ee;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a9fb2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center,
    #ffffff;
  text-align: left;
  font-family: var(--text-font);
  font-size: 15px;
  color: #12141c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.qt-dd-btn.is-placeholder {
  color: #9a9fb2;
}
.qt-select.is-open .qt-dd-btn,
.qt-dd-btn:focus-visible {
  outline: none;
  border-color: rgba(232, 49, 138, 0.5);
  box-shadow: 0 0 0 4px rgba(232, 49, 138, 0.1);
}
.qt-dd-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ece9f5;
  box-shadow: 0 24px 50px -20px rgba(60, 30, 140, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 250ms var(--header-ease), visibility 200ms;
}
.qt-select.is-open .qt-dd-list {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.qt-dd-list li {
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--text-font);
  font-size: 15px;
  color: #12141c;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.qt-dd-list li:hover {
  background: #f4f1ff;
  color: var(--brand-purple);
}
.qt-dd-list li[aria-selected="true"] {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
}
/* keep the open list above the fields below it */
.qt-select.is-open {
  z-index: 20;
}

/* let the open list spill outside the card (panels keep their own rounded corners) */
.qt-card {
  overflow: visible;
}
.qt-card .contact-info {
  border-radius: 31px 0 0 31px;
}
@media (max-width: 991.98px) {
  .qt-card .contact-info {
    border-radius: 31px 31px 0 0;
  }
}
/* compact list rows */
.qt-dd-list li {
  padding: 9px 14px;
  line-height: 1.35;
}
.qt-dd-list li + li {
  margin-top: 2px;
}
/* show all nine services without scrolling */
.qt-dd-list {
  max-height: none;
}
/* round the form side too, now that the card no longer clips its corners */
.qt-card .contact-form-v2 {
  border-radius: 0 31px 31px 0;
}
@media (max-width: 991.98px) {
  .qt-card .contact-form-v2 {
    border-radius: 0 0 31px 31px;
  }
}
.qt-card .contact-form-v2 {
  overflow: visible;
}
.qt-dd-list {
  overflow: visible;
}

/* list: shows about 5 services, scroll for the rest */
.qt-dd-list {
  max-height: 228px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 61, 240, 0.35) transparent;
}
.qt-dd-list::-webkit-scrollbar {
  width: 6px;
}
.qt-dd-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}
.qt-dd-list::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: linear-gradient(180deg, var(--brand-pink), var(--brand-purple));
}

/* scrollbar: Chrome/Edge/Safari use the gradient thumb below
   (setting scrollbar-width there would switch it back to the plain grey one) */
.qt-dd-list {
  scrollbar-width: auto;
  scrollbar-color: auto;
}
.qt-dd-list::-webkit-scrollbar-button {
  display: none;
}
/* Firefox has no gradient scrollbars: use a solid brand purple */
@supports not selector(::-webkit-scrollbar) {
  .qt-dd-list {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-purple) transparent;
  }
}

/* lighter scrollbar: soft tint, a little stronger on hover */
.qt-dd-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 49, 138, 0.3), rgba(106, 61, 240, 0.3));
}
.qt-dd-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(232, 49, 138, 0.55), rgba(106, 61, 240, 0.55));
}
@supports not selector(::-webkit-scrollbar) {
  .qt-dd-list {
    scrollbar-color: rgba(106, 61, 240, 0.3) transparent;
  }
}

/* chosen service: same soft lavender as the hover state, instead of the full gradient */
.qt-dd-list li[aria-selected="true"] {
  background: #f4f1ff;
  color: var(--brand-purple);
  font-weight: 600;
}
.qt-dd-list li[aria-selected="true"]:hover {
  background: #ece6ff;
}

/* scrollbar: same soft lavender family as the hovered/selected option */
.qt-dd-list::-webkit-scrollbar-thumb {
  background: #e4dcff;
}
.qt-dd-list::-webkit-scrollbar-thumb:hover {
  background: #cfc2ff;
}
@supports not selector(::-webkit-scrollbar) {
  .qt-dd-list {
    scrollbar-color: #e4dcff transparent;
  }
}

/* scrollbar: a little darker lavender so it's easy to see */
.qt-dd-list::-webkit-scrollbar-thumb {
  background: #c4b5fd;
}
.qt-dd-list::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}
@supports not selector(::-webkit-scrollbar) {
  .qt-dd-list {
    scrollbar-color: #c4b5fd transparent;
  }
}
