/* FAQSection: equal height for contact form and FAQ panels */
.faq-area.style-two .row.padding-top {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.faq-area.style-two .row.padding-top > [class*="col-"] {
  display: flex;
  align-items: stretch;
}

.faq-area.style-two .contact-form-box.style-three {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin-top: -233px !important;
}

.faq-area.style-two .faq-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.faq-area.style-two .faq-panel .row.background_color {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 380px;
  margin-top: -234px !important;
  padding: 42px 40px 30px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 5px 0 rgb(0 0 0 / 6%);
}

.faq-area.style-two .faq-panel .row.background_color > [class*="col-"] {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}

.faq-area.style-two .contact-form-box.style-three form {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-area.style-two .contact-form-box.style-three form > .row {
  flex: 0 0 auto;
}

.faq-area.style-two .contact-form-box.style-three .from-box2 {
  margin-top: 0;
}

/* Contact form header — grows to balance FAQ panel height */
#contact.contact-form-title {
  background: var(--sdg-gradient-btn) !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
  padding: 52px 36px 100px !important;
  border-radius: 5px 5px 0 0;
}

#contact.contact-form-title h3 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

#contact.contact-form-title h3:first-of-type {
  font-size: 60px !important;
  line-height: 1.05 !important;
  margin: 0 0 18px;
}

#contact.contact-form-title h3:last-of-type {
  font-size: 52px !important;
  line-height: 1.18 !important;
  margin: 0;
}

/* FAQ title eyebrow */
#faq .faq-panel .dreamit-section-title h5,
#faq .faq-panel .dreamit-section-title h5.color2 {
  color: var(--sdg-red) !important;
}

#faq .faq-panel .dreamit-section-title h5::before {
  background: var(--sdg-red) !important;
}

#faq .faq-panel .dreamit-section-title h1 {
  color: var(--sdg-dark);
}

#faq .faq-panel .dreamit-section-title h1 span.color2 {
  background: var(--sdg-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

@media (max-width: 991px) {
  .faq-area.style-two .row.padding-top > [class*="col-"] {
    margin-bottom: 24px;
  }

  .faq-area.style-two .contact-form-box.style-three {
    margin-top: 30px !important;
    min-height: 0;
  }

  .faq-area.style-two .faq-panel .row.background_color {
    margin-top: 25px !important;
    min-height: 0;
    padding: 42px 10px 30px;
  }

  #contact.contact-form-title {
    min-height: 0;
    padding: 40px 24px 88px !important;
  }

  #contact.contact-form-title h3:first-of-type {
    font-size: 34px !important;
  }

  #contact.contact-form-title h3:last-of-type {
    font-size: 28px !important;
  }
}

/* Phone field — country prefix + number (react-phone-number-input) */
#faq .from-box.sdg-phone-field {
  --PhoneInput-color--focus: #3080ff;
  float: none;
  margin-bottom: 16px;
}

#faq .from-box.sdg-phone-field .PhoneInput {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}

#faq .from-box.sdg-phone-field,
#faq .from-box.sdg-phone-field .PhoneInput,
#faq .from-box.sdg-phone-field .PhoneInputCountry {
  overflow: visible;
}

#faq .from-box.sdg-phone-field .PhoneInputCountry {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 112px;
  max-width: 42%;
  min-height: 56px;
  margin-right: 0;
  padding: 0 28px 0 12px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  background: #fff;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select {
  position: relative;
  z-index: 2;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select.is-open {
  z-index: 30;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
  font: inherit;
  text-transform: none;
  color: inherit;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__trigger:disabled {
  cursor: not-allowed;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select .PhoneInputCountryIcon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  pointer-events: none;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select .PhoneInputCountrySelectArrow {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 1;
  flex-shrink: 0;
  pointer-events: none;
  width: 8px;
  height: 8px;
  margin: 0;
  transform: translateY(-65%) rotate(45deg);
  border-width: 0 0 2px 2px;
  border-style: solid;
  border-color: #00132b;
  opacity: 1;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  z-index: 40;
  box-sizing: border-box;
  width: max(300px, 100%);
  min-width: 300px;
  max-width: min(360px, calc(100vw - 32px));
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid rgba(48, 128, 255, 0.28);
  border-radius: 4px;
  background: rgba(15, 23, 43, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 43, 0.35);
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__menu li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  float: none;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__option {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  z-index: auto;
  display: block;
  width: 100%;
  height: auto;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: #bcc7cd;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__option:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

#faq .from-box.sdg-phone-field .sdg-phone-country-select__option.is-active {
  color: var(--sdg-blue) !important;
  -webkit-text-fill-color: var(--sdg-blue) !important;
  background: rgba(48, 128, 255, 0.12);
}

#faq .from-box.sdg-phone-field .PhoneInputCountryIcon {
  width: 24px;
  height: 16px;
}

#faq .from-box.sdg-phone-field .PhoneInputInput {
  flex: 1 1 auto;
  min-width: 0;
  float: none;
  height: 56px;
  margin-bottom: 0;
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  padding: 6px 20px;
  color: #00132b;
  font-weight: 400;
  font-size: 16px;
}

#faq .from-box.sdg-phone-field .PhoneInputCountry:focus-within,
#faq .from-box.sdg-phone-field .PhoneInputInput:focus {
  border-color: transparent;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgb(48 128 255 / 50%);
}
