/* =========================================================
   10. FAQ
   ========================================================= */

.referral-faq-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(13, 110, 253, 0.07),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 122, 0, 0.07),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* FAQ Heading */

.referral-faq-head {
  position: relative;
  max-width: 900px;
}

.referral-faq-kicker {
  color: #071333;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.referral-faq-kicker-line {
  width: 34px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 5px;
  background: #ff6a00;
}

.referral-faq-title {
  color: #071333;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.referral-faq-title span {
  color: #ff6200;
}

.referral-faq-description {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #34405c;
  font-size: 18px;
  line-height: 1.5;
}

/* FAQ Accordion */

.referral-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
}

/* FAQ Items */

.referral-faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #e2ecfa !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(17, 40, 80, 0.05);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.referral-faq-item:has(.accordion-button:not(.collapsed)) {
  border-color: #b8d6ff !important;
  box-shadow: 0 14px 34px rgba(13, 110, 253, 0.08);
}

/* FAQ Button */

.referral-faq-button {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 16px 24px;
  background: transparent;
  color: #071333;
  border-radius: 14px !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  box-shadow: none !important;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.referral-faq-button:not(.collapsed) {
  background: #ffffff;
  color: #071333;
  box-shadow: none;
}

.referral-faq-button.collapsed {
  background: #ffffff;
}

.referral-faq-button:hover {
  background: #f8fbff;
}

/* FAQ Custom Icons */

.referral-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 21px;
}

.referral-faq-icon.blue {
  color: #0d6efd;
  background: #e6f2ff;
}

.referral-faq-icon.teal {
  color: #00baa5;
  background: #e1faf5;
}

.referral-faq-icon.orange {
  color: #ff6200;
  background: #fff0e4;
}

.referral-faq-icon.purple {
  color: #7447ed;
  background: #f0eaff;
}

.referral-faq-icon.red {
  color: #ef4444;
  background: #ffebeb;
}

/* FAQ Question */

.referral-faq-question {
  flex: 1;
  min-width: 0;
  padding-right: 12px;
  overflow-wrap: break-word;
}

/* Remove Bootstrap Default Chevron */

.referral-faq-button::after {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-left: auto;
  background-image: none !important;
  background-size: auto;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  background-color: #f0f5ff;
  transform: none !important;
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  color: #075be8;
  font-family: "Inter", sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Open Accordion - Minus */

.referral-faq-button:not(.collapsed)::after {
  content: "−";
  background-color: #e8f2ff;
  color: #075be8;
}

/* FAQ Answer */

.referral-faq-answer {
  margin: 0 20px 16px 0px;
  padding: 15px 20px;
  color: #34405c;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* =========================================================
   FAQ Responsive
   ========================================================= */

@media (max-width: 1399.98px) {
  .referral-faq-kicker {
    font-size: 14px;
  }

  .referral-faq-title {
    font-size: 32px;
  }

  .referral-faq-description {
    font-size: 15px;
  }

  .referral-faq-button {
    min-height: 70px;
    padding: 14px 20px;
    gap: 16px;
    font-size: 17px;
  }

  .referral-faq-icon {
    width: 43px;
    height: 43px;
    font-size: 19px;
  }

  .referral-faq-answer {
    /* margin-left: 79px; */
    font-size: 15px;
  }
}

@media (max-width: 991.98px) {
  .referral-faq-accordion {
    gap: 12px;
  }

  .referral-faq-button {
    min-height: 68px;
    padding: 14px 18px;
  }

  .referral-faq-answer {
    margin: 0 15px 15px;
    padding: 15px 18px;
  }
}

@media (max-width: 767.98px) {
  .referral-faq-kicker {
    font-size: 12px;
  }

  .referral-faq-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .referral-faq-description {
    font-size: 16px;
  }

  .referral-faq-button {
    min-height: 65px;
    padding: 13px 15px;
    gap: 12px;
    font-size: 16px;
  }

  .referral-faq-icon {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .referral-faq-button::after {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }

  .referral-faq-answer {
    margin: 0 12px 12px;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.55;
  }
}

@media (max-width: 575.98px) {
  .referral-faq-head {
    margin-bottom: 30px !important;
  }

  .referral-faq-button {
    gap: 10px;
    padding: 12px;
  }

  .referral-faq-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .referral-faq-question {
    padding-right: 0;
  }

  .referral-faq-button::after {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }

  .referral-faq-answer {
    margin: 0 10px 10px;
    padding: 12px;
  }
}
