/* HPFY FAQ Plugin Styling */
:root {
  --hpfy-red: #D0021B;
  --hpfy-red-dk: #a80116;
  --hpfy-blue: #4A7FC1;
  --hpfy-blue-lt: #F0F5FB;
  --hpfy-blue-dk: #2E5F9E;
  --hpfy-orange: #E07B2A;
  --hpfy-green: #2E8B57;
  --hpfy-navy: #1a3a5c;
  --hpfy-neutral: #F5F7FA;
  --hpfy-border: #D8DCE6;
  --hpfy-text: #1a1a1a;
  --hpfy-muted: #6B7280;
  --hpfy-white: #ffffff;
  --hpfy-r: 8px;
  --hpfy-gutter: 24px;
  --hpfy-font: 'Poppins', sans-serif;
}

.hpfy-faq-container {
  font-family: var(--hpfy-font);
  color: var(--hpfy-text);
  background: var(--hpfy-neutral);
  border-radius: var(--hpfy-r);
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--hpfy-border);
}

.hpfy-faq-layout {
  display: flex;
  height: 800px;
}

.hpfy-sidebar {
  width: 280px;
  background: var(--hpfy-white);
  border-right: 1px solid var(--hpfy-border);
  padding: var(--hpfy-gutter);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.hpfy-sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--hpfy-navy);
  margin-bottom: 24px;
}

.hpfy-category-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hpfy-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.hpfy-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--hpfy-r);
  margin-bottom: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  color: var(--hpfy-text);
}

.hpfy-nav-item:hover {
  background: var(--hpfy-blue-lt);
}

.hpfy-nav-item.active {
  background: var(--hpfy-blue);
  color: var(--hpfy-white);
  font-weight: 500;
}

.hpfy-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--hpfy-gutter);
  overflow: hidden;
}

.hpfy-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--hpfy-navy);
  margin: 0 0 8px 0;
}

.hpfy-header p {
  font-size: 14px;
  color: var(--hpfy-muted);
  margin-bottom: 24px;
}

.hpfy-search-box {
  background: var(--hpfy-white);
  border: 1px solid var(--hpfy-border);
  border-radius: var(--hpfy-r);
  padding: 0 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  position: relative;
}

.hpfy-search-box .dashicons {
  color: var(--hpfy-muted);
  font-size: 20px;
}

.hpfy-search-box input {
  border: none;
  background: transparent;
  padding: 12px;
  width: 100%;
  font-size: 14px;
  color: var(--hpfy-text);
  outline: none;
}

.hpfy-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  overflow-y: auto;
  padding-bottom: 24px;
}

.hpfy-faq-card {
  background: var(--hpfy-white);
  border: 1px solid var(--hpfy-border);
  border-radius: var(--hpfy-r);
  padding: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.hpfy-faq-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--hpfy-blue);
}

.hpfy-faq-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--hpfy-blue-lt);
  color: var(--hpfy-blue-dk);
}

.hpfy-faq-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--hpfy-navy);
}

.hpfy-faq-answer {
  font-size: 13px;
  color: var(--hpfy-muted);
  line-height: 1.5;
}

.hpfy-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--hpfy-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hpfy-footer-cta {
  font-size: 13px;
  font-weight: 600;
}

.hpfy-footer-cta a {
  color: var(--hpfy-blue);
  margin-left: 8px;
  text-decoration: none;
}

.hpfy-action-btns {
  display: flex;
  gap: 12px;
}

.hpfy-action-btns button {
  padding: 10px 20px;
  border-radius: var(--hpfy-r);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.hpfy-btn-email {
  border: 1px solid var(--hpfy-blue) !important;
  color: var(--hpfy-blue);
  background: transparent;
}

.hpfy-btn-call {
  background: var(--hpfy-red);
  color: white;
}

.hpfy-loader {
  width: 20px;
  height: 20px;
  border: 2px solid var(--hpfy-blue-lt);
  border-top-color: var(--hpfy-blue);
  border-radius: 50%;
  animation: hpfy-spin 1s linear infinite;
}

@keyframes hpfy-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .hpfy-faq-layout {
    flex-direction: column !important;
    height: auto !important;
  }
  .hpfy-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--hpfy-border) !important;
  }
  .hpfy-content {
    height: auto !important;
  }
}

@media (max-width: 767px) {
  .hpfy-faq-grid {
    grid-template-columns: 1fr !important;
  }
  .hpfy-footer {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
  .hpfy-header h1 {
    font-size: 20px !important;
  }
}