/* Refined two-column FAQ */

.faq-section,
#faq.faq-section {
  --rf-bg: #f6f8fc;
  --rf-text: #0f1d33;
  --rf-muted: #708096;
  --rf-line: #e6ebf2;
  --rf-blue: #2f67f6;
  --rf-blue-soft: #edf4ff;
  --rf-purple: #7457f6;
  --rf-shadow: 0 18px 44px rgba(22, 38, 72, 0.07);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  padding: 72px 0 78px;
  color: var(--rf-text);
  background: var(--rf-bg);
}

.faq-section .rf-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.faq-section .rf-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.faq-section .rf-eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #dce6ff;
  background: #f2f6ff;
  color: var(--rf-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-section .rf-head h2 {
  margin: 14px 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.048em;
  color: var(--rf-text);
}

.faq-section .rf-head > p {
  margin: 0;
  color: var(--rf-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  padding-bottom: 4px;
}

.faq-section .rf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.faq-section .rf-column {
  display: grid;
  gap: 14px;
}

.faq-section .rf-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: 20px;
  overflow: hidden;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.faq-section .rf-item:hover {
  transform: translateY(-2px);
  border-color: #d8e1ee;
  box-shadow: 0 12px 28px rgba(22, 38, 72, 0.055);
}

.faq-section .rf-item.open {
  border-color: #cbdcff;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: var(--rf-shadow);
}

.faq-section .rf-item.open::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rf-blue), var(--rf-purple));
}

.faq-section .rf-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 18px 18px 20px;
  display: grid;
  grid-template-columns: 38px 1fr 30px;
  gap: 13px;
  align-items: center;
  text-align: left;
  color: var(--rf-text);
  cursor: pointer;
  font-family: inherit;
}

.faq-section .rf-qnum {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #f6f8fb;
  border: 1px solid #e8edf4;
  color: #8492a6;
  font-size: 11px;
  font-weight: 900;
  transition: 0.2s ease;
}

.faq-section .rf-item.open .rf-qnum {
  background: var(--rf-blue-soft);
  border-color: #d8e4ff;
  color: var(--rf-blue);
}

.faq-section .rf-question {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.faq-section .rf-toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #8ba0bd;
  background: #f7f9fc;
  transition: 0.22s ease;
}

.faq-section .rf-toggle svg {
  transition: transform 0.22s ease;
}

.faq-section .rf-item.open .rf-toggle {
  background: var(--rf-blue-soft);
  color: var(--rf-blue);
}

.faq-section .rf-item.open .rf-toggle svg {
  transform: rotate(45deg);
}

.faq-section .rf-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.22s ease;
}

.faq-section .rf-item.open .rf-answer {
  max-height: 280px;
  opacity: 1;
}

.faq-section .rf-answer-inner {
  padding: 0 58px 20px 71px;
  color: var(--rf-muted);
  font-size: 13px;
  line-height: 1.7;
}

.faq-section .rf-answer-inner strong {
  color: var(--rf-text);
}

.faq-section .rf-answer-inner code {
  color: var(--rf-blue);
  font-size: 0.92em;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 56px 0 64px;
  }

  .faq-section .rf-wrap {
    width: min(100% - 24px, 1100px);
  }

  .faq-section .rf-head h2 {
    font-size: clamp(26px, 7vw, 34px);
  }
}

@media (max-width: 820px) {
  .faq-section .rf-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-section .rf-head > p {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .faq-section .rf-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .faq-section {
    padding: 54px 0 62px;
  }

  .faq-section .rf-wrap {
    width: min(100% - 22px, 1100px);
  }

  .faq-section .rf-button {
    grid-template-columns: 34px 1fr 28px;
    padding: 16px 14px;
    gap: 10px;
  }

  .faq-section .rf-qnum {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .faq-section .rf-question {
    font-size: 14px;
  }

  .faq-section .rf-answer-inner {
    padding: 0 16px 17px 16px;
  }

  .faq-section .rf-head h2 {
    font-size: 32px;
  }

  .faq-section .rf-toggle {
    width: 36px;
    height: 36px;
  }
}
