/**
 * FAQ page - page-unique styles. v2 adaptation of v1 faq.css.
 *
 * @package HID_VP_Solution_V2
 */

/* ── Hero with search ── */
.faq-hero {
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 56px 0 48px; text-align: center; position: relative; overflow: hidden;
}
.faq-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(28,104,188,.07) 0%, transparent 70%);
}
.faq-hero-title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px);
  font-weight: 800; letter-spacing: -1px; color: var(--text-1); margin-bottom: 12px;
  position: relative; z-index: 1;
}
.faq-hero-sub { font-size: 16px; color: var(--text-2); max-width: 480px; margin: 0 auto 28px; line-height: 1.7; position: relative; z-index: 1; }
.faq-search-wrap {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); max-width: 520px; margin: 0 auto;
  position: relative; z-index: 1;
  transition: border-color var(--fast) var(--ease);
}
.faq-search-wrap:focus-within { border-color: var(--cobalt-700); box-shadow: 0 0 0 3px rgba(28,104,188,.12); }
.faq-search-icon { padding: 0 16px; color: var(--text-2); display: flex; align-items: center; }
.faq-search-icon svg { width: 18px; height: 18px; }
.faq-search-input {
  flex: 1; height: 52px; background: none; border: none;
  font-size: 15px; color: var(--text-1); font-family: var(--font-body);
  outline: none;
}
.faq-search-input::placeholder { color: var(--text-2); opacity: .6; }

/* ── Category tabs ── */
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.faq-cat-btn {
  height: 36px; padding: 0 18px; border-radius: 100px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: var(--fast) var(--ease);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.faq-cat-btn:hover { border-color: var(--cobalt-700); color: var(--text-1); }
.faq-cat-btn.active { background: var(--cobalt-700); color: #fff; border-color: var(--cobalt-700); }

/* ── Accordion ── */
.faq-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.faq-group-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-2); margin: 28px 0 14px;
}
.faq-group-label:first-child { margin-top: 0; }
.faq-group-label i { color: var(--cobalt-700); font-size: 13px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 8px;
  transition: border-color var(--fast) var(--ease);
}
.faq-item:hover { border-color: var(--cobalt-700); }
.faq-item.open { border-color: var(--cobalt-700); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer; gap: 16px;
}
.faq-q-text { font-size: 14.5px; font-weight: 600; color: var(--text-1); line-height: 1.4; }
.faq-item.open .faq-q-text { color: var(--cobalt-600); }
.faq-q-arrow {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease; color: var(--text-2);
}
.faq-q-arrow svg { width: 14px; height: 14px; }
.faq-item.open .faq-q-arrow { transform: rotate(180deg); background: rgba(28,104,188,.12); color: var(--cobalt-600); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 20px 18px; padding-top: 14px;
  font-size: 14px; color: var(--text-2); line-height: 1.8;
  border-top: 1px solid var(--border);
}
.faq-a-inner a { color: var(--link); }
.faq-a-inner a:hover { text-decoration: underline; }

/* Delivery cards block */
.faq-delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 6px; }
.faq-delivery-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px;
}
.faq-delivery-card .fd-name { font-size: 13.5px; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.faq-delivery-card .fd-price { font-size: 13px; font-weight: 700; color: var(--green-700); }
.faq-delivery-card .fd-meta { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
@media (max-width: 600px) { .faq-delivery-grid { grid-template-columns: 1fr; } }

/* ── Help sidebar ── */
.faq-help-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  position: sticky; top: 100px;
}
.faq-help-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(28,104,188,.1); color: var(--cobalt-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.faq-help-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text-1); margin-bottom: 8px; }
.faq-help-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.faq-help-btn {
  width: 100%; height: 46px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: var(--fast) var(--ease);
  text-decoration: none; margin-bottom: 10px;
}
.faq-help-btn.primary { background: var(--cobalt-700); color: #fff; border: none; }
.faq-help-btn.primary:hover { background: var(--cobalt-600); box-shadow: 0 0 0 3px rgba(28,104,188,.12); }
.faq-help-btn.outline { background: transparent; border: 1px solid var(--border); color: var(--text-1); }
.faq-help-btn.outline:hover { background: var(--bg-alt); }
.faq-help-btn i { font-size: 15px; }

@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-help-card { position: static; } }
@media (max-width: 600px) { .faq-cats { gap: 6px; } .faq-cat-btn { height: 34px; padding: 0 14px; font-size: 12px; } }

/* Font Awesome icons (the shapes were inline SVG): sized like the svg rules above. */
.faq-search-icon i[class*="fa-"] { font-size: 18px; line-height: 1; }
.faq-q-arrow i[class*="fa-"] { font-size: 14px; line-height: 1; }
