/* ============================================================
   JAPAN TALENT MATCHING — FAQ v17 (Enterprise Blue-Gray)
=========================================================== */

/* ─────────── ROOT TOKENS ─────────── */
:root {
  --jt-ink: #0b1320;
  --jt-muted: #6b7280;
  --jt-accent: #3b82f6;
  --jt-accent-mid: #2563eb;
  --jt-accent-dark: #1e40af;
  --jt-bg: #f7f9fc;
}

/* ─────────── GLOBAL PAGE ─────────── */
body.page-template-faq {
  font-family: "Poppins", "Inter", system-ui, sans-serif !important;
  background: var(--jt-bg);
  color: var(--jt-ink);
  line-height: 1.7;
  scroll-behavior: smooth;
}

body.page-template-faq h1,
body.page-template-faq h2,
body.page-template-faq h3,
body.page-template-faq h4,
body.page-template-faq h5,
body.page-template-faq h6 {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
  color: var(--jt-ink);
}

body.page-template-faq p {
  color: #1f2a3a;
  font-size: 15px;
}

/* ============================================================
   HERO SECTION
=========================================================== */
.hero-faq {
  position: relative;
  min-height: 420px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-faq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-faq h1 {
  text-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
}

.hero-faq p {
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* ============================================================
   INQUIRY FORM — Professional Glass
=========================================================== */
#jt-faq .faq-form {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid #e6ebf2;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
}

#jt-faq .faq-form input,
#jt-faq .faq-form textarea {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--jt-ink);
  width: 100%;
  transition: all 0.25s ease;
}

#jt-faq .faq-form input:focus,
#jt-faq .faq-form textarea:focus {
  border-color: var(--jt-accent-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

#jt-faq .faq-form button {
  border-radius: 999px;
  background: var(--jt-accent-mid);
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 12px 36px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

#jt-faq .faq-form button:hover {
  background: var(--jt-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

/* ============================================================
   FAQ FULL SECTION (CATEGORIES + QUESTIONS)
=========================================================== */
.faq-full {
  background: var(--jt-bg);
}

.faq-category {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e6ebf2;
}

.faq-category h3 {
  color: #0f1c2e;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

/* Individual FAQ Item */
.faq-item {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.faq-item summary {
  list-style: none;
  padding: 1.2rem 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--jt-ink);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Arrow rotation */
.faq-item[open] summary svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Answer */
.faq-answer {
  padding: 0 1.8rem 1.5rem;
  color: var(--jt-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  animation: fadeIn 0.25s ease;
}

/* Open state — subtle emphasis only */
.faq-item[open] {
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.2);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE OPTIMIZATION
=========================================================== */
@media (max-width: 1024px) {
  .hero-faq {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .faq-item summary {
    font-size: 0.95rem;
    padding: 1rem 1.4rem;
  }

  .faq-answer {
    padding: 0 1.4rem 1.2rem;
  }

  .faq-category h3 {
    font-size: 1.4rem;
  }
}
