/*
  FAQ (NS neon) – spójne z motywem Nightskating
  Używane na szablonie page-faq.php
*/

.ns-faq{ position: relative; z-index: 1; padding: 28px 0 50px; }

.ns-faq-head{ margin: 12px 0 18px; }

.ns-faq-title{
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: .02em;
}

.ns-faq-intro{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: rgba(234,242,255,.78);
  font-size: 16px;
  line-height: 1.65;
}

/* --- NAV (kategorie) --- */
.ns-faq-nav{
  position: sticky;
  top: 88px; /* pod headerem */
  z-index: 5;
  margin-top: 16px;
  padding: 0;
  display: flex;
  justify-content: center;
}

.ns-faq-nav::before{content:none;}

.ns-faq-nav-inner{
  position: relative;
  /* "pasek" ma być na szerokość przycisków, nie na całą szerokość kontenera */
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 10px;
  scroll-snap-type: x proximity;
  background: linear-gradient(180deg, rgba(5,8,22,.92), rgba(5,8,22,.72));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.ns-faq-nav-inner::-webkit-scrollbar{ height: 6px; }
.ns-faq-nav-inner::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.16); border-radius: 10px; }

.ns-faq-navbtn{
  position: relative;
  scroll-snap-align: start;
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: rgba(234,242,255,.9);
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.22);
}

/* Neonowy "sznyt" jak w reszcie NS: subtelna linia/gradient pod aktywną pigułką */
.ns-faq-navbtn::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102,243,255,.0), rgba(102,243,255,.85), rgba(255,225,77,.85), rgba(255,225,77,.0));
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: 50% 50%;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
  filter: drop-shadow(0 0 8px rgba(102,243,255,.22));
  pointer-events:none;
}

.ns-faq-navbtn:hover{
  transform: translateY(-1px);
  border-color: rgba(102,243,255,.8);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 12px rgba(255,255,255,.08),
    0 0 26px rgba(102,243,255,.35);
  filter: drop-shadow(0 0 10px rgba(102,243,255,.28));
}

.ns-faq-navbtn:hover::after{
  opacity: .7;
  transform: scaleX(1);
  filter: drop-shadow(0 0 10px rgba(102,243,255,.28)) drop-shadow(0 0 8px rgba(255,225,77,.18));
}

.ns-faq-navbtn.is-active{
  border-color: rgba(77,163,255,.9);
  background: linear-gradient(135deg, rgba(102,243,255,.10), rgba(255,255,255,.03));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 10px rgba(255,255,255,.10),
    0 0 30px rgba(77,163,255,.48),
    0 0 22px rgba(255,225,77,.18);
}

.ns-faq-navbtn.is-active::after{
  opacity: 1;
  transform: scaleX(1);
  filter: drop-shadow(0 0 14px rgba(77,163,255,.40)) drop-shadow(0 0 10px rgba(255,225,77,.22));
}

.ns-faq-navico{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(90% 90% at 30% 20%, rgba(102,243,255,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.ns-faq-icoimg{ width: 20px; height: 20px; object-fit: contain; }
.ns-faq-icotxt{ font-size: 18px; line-height: 1; }

.ns-faq-navtxt{ font-weight: 800; font-size: 14px; letter-spacing: .01em; }

/* --- KATEGORIE --- */
.ns-faq-cats{ margin-top: 16px; display: flex; flex-direction: column; gap: 22px; }

.ns-faq-cat{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
}

.ns-faq-cat::before{
  content:"";
  position:absolute;
  inset:-40% -20% auto -20%;
  height: 220px;
  background:
    radial-gradient(60% 70% at 20% 40%, rgba(138,92,255,.22), transparent 65%),
    radial-gradient(60% 70% at 55% 30%, rgba(102,243,255,.18), transparent 68%),
    radial-gradient(60% 70% at 85% 45%, rgba(255,77,206,.14), transparent 66%);
  pointer-events:none;
  filter: blur(2px);
}

.ns-faq-cat-title{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 8px 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* neonowa kreska jak w pozostałych boxach */
.ns-faq-cat-title::after{
  content:"";
  position:absolute;
  left: 56px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(102,243,255,.0), rgba(102,243,255,.55), rgba(255,77,206,.45), rgba(102,243,255,.0));
  filter: blur(.2px);
  opacity: .85;
}

.ns-faq-cat-ico{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(90% 90% at 30% 20%, rgba(77,163,255,.22), rgba(255,255,255,.05));
  box-shadow: var(--glow-blue);
}

.ns-faq-cat-text{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
}

/* --- AKORDEON: jedna „duża karta” z wierszami (jak na innych sekcjach NS) --- */
.ns-faq-accordion{
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  overflow: hidden;
}

.ns-acc-item{
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: transparent;
  box-shadow: none;
}
.ns-acc-item:first-child{ border-top: 0; }

.ns-acc-q{
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(234,242,255,.92);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.ns-acc-q:hover{ background: rgba(255,255,255,.035); }

.ns-acc-ico{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(90% 90% at 30% 20%, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.ns-acc-qtext{
  flex: 1 1 auto;
  font-weight: 900;
  letter-spacing: .01em;
  font-size: 16px;
}

.ns-acc-chev{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(70% 70% at 30% 25%, rgba(102,243,255,.10), rgba(255,255,255,.02));
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 10px 24px rgba(0,0,0,.25),
    0 0 18px rgba(0,0,0,.18);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.ns-acc-q:hover .ns-acc-chev{
  border-color: rgba(102,243,255,.55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 10px rgba(255,255,255,.08),
    0 0 26px rgba(102,243,255,.26);
  transform: translateY(-1px);
}


/* Ikona rozwijania – chevron (zamiast plusa) */
.ns-acc-chev::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(234,242,255,.92);
  border-bottom: 2px solid rgba(234,242,255,.92);
  transform: translate(-50%, -55%) rotate(45deg);
  transition: transform .16s ease, filter .16s ease;
  filter: drop-shadow(0 0 6px rgba(102,243,255,.18));
}

/* stan otwarty – strzałka w górę */
.ns-acc-q[aria-expanded="true"] .ns-acc-chev::before{
  transform: translate(-50%, -40%) rotate(-135deg);
  filter: drop-shadow(0 0 10px rgba(102,243,255,.45));
}


.ns-acc-a{
  border-top: 1px solid rgba(255,255,255,.08);
}

.ns-acc-a-inner{
  padding: 10px 16px 18px;
  color: rgba(234,242,255,.80);
  line-height: 1.7;
}

.ns-acc-a-inner p{ margin: 10px 0; }
.ns-acc-a-inner ul{ margin: 10px 0 10px 18px; }
.ns-acc-a-inner li{ margin: 6px 0; }

.ns-acc-a-inner strong{ color: rgba(255,255,255,.96); }

/* --- KONTAKT --- */
.ns-faq-contact{
  margin-top: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  overflow: hidden;
  position: relative;
}

.ns-faq-contact::before{
  content:"";
  position:absolute;
  inset:-30% -20% auto -20%;
  height: 260px;
  background:
    radial-gradient(60% 70% at 25% 35%, rgba(102,243,255,.22), transparent 65%),
    radial-gradient(60% 70% at 70% 30%, rgba(255,77,206,.16), transparent 66%);
  pointer-events:none;
  filter: blur(2px);
}

.ns-faq-contact-inner{ position: relative; padding: 20px 16px; text-align: center; }

.ns-faq-contact-title{ margin: 0 0 6px; font-size: 28px; font-weight: 1000; letter-spacing: .02em; }
.ns-faq-contact-text{ margin: 0 0 14px; color: rgba(234,242,255,.78); }

.ns-faq-contact-links{ display: flex; flex-direction: column; align-items: center; gap: 12px; }

.ns-faq-contact-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

/* CTA (otwiera formularz) – wygląda jak link, ale jest button */
.ns-faq-contact-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}
.ns-faq-contact-cta:hover{
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(102,243,255,.9);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 12px rgba(255,255,255,.08),
    0 0 24px rgba(102,243,255,.32);
  filter: drop-shadow(0 0 12px rgba(102,243,255,.22));
}

.ns-faq-notice{
  max-width: 760px;
  margin: 0 auto 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: rgba(234,242,255,.86);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.22);
}
.ns-faq-notice.is-ok{ border-color: rgba(102,243,255,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 26px rgba(102,243,255,.18); }
.ns-faq-notice.is-bad{ border-color: rgba(255,77,206,.45); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 26px rgba(255,77,206,.14); }

.ns-faq-contact-link:hover{
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(102,243,255,.9);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 12px rgba(255,255,255,.08),
    0 0 24px rgba(102,243,255,.32);
  filter: drop-shadow(0 0 12px rgba(102,243,255,.22));
}

.ns-faq-contact-ico{ color: rgba(255,255,255,.92); display:inline-flex; }

/* social kółka – jak w stopce */
.ns-faq-social{ display:flex; gap: 10px; }

.ns-faq-social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration:none;
}

.ns-faq-social-btn:hover{
  transform: translateY(-1px) scale(1.06);
  border-color: rgba(102,243,255,.92);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 10px rgba(255,255,255,.10),
    0 0 22px rgba(102,243,255,.55);
  filter: drop-shadow(0 0 10px rgba(102,243,255,.55));
}

.ns-faq-social-btn svg{ width: 22px; height: 22px; fill: rgba(255,255,255,.92); }

@media (max-width: 720px){
  .ns-faq-nav{ top: 74px; }
  .ns-faq-cat-text{ font-size: 20px; }
  .ns-acc-qtext{ font-size: 15px; }
  .ns-faq-contact-title{ font-size: 24px; }
}

/* Mobile: kategorie w układzie 2x2 (bez poziomego scrolla) */
@media (max-width: 640px){
  .ns-faq-nav-inner{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 10px;
    width: min(520px, 100%);
  }
  .ns-faq-navbtn{
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

/* =========================
   MODAL FORM (FAQ kontakt)
   ========================= */

html.ns-faq-modal-open,
html.ns-faq-modal-open body{
  overflow: hidden;
}

/* Gdy otwarty jest modal – chowamy sticky nav, żeby nie "wchodził" pod okno */
html.ns-faq-modal-open .ns-faq-nav{
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .12s ease, transform .12s ease;
}


.ns-faq-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.ns-faq-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.ns-faq-modal__panel{
  position: relative;
  width: min(560px, calc(100vw - 24px));
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(5,8,22,.62);
  box-shadow: 0 26px 90px rgba(0,0,0,.6);
  padding: 18px 18px 16px;
}

/* Mobile: mniejszy modal + scroll wewnętrzny (żeby nie zalewał ekranu) */
@media (max-width: 640px){
  .ns-faq-modal{ place-items: start center; padding: 12px; }
  .ns-faq-modal__panel{
    margin-top: 72px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 20px;
  }
  .ns-faq-form__row textarea{ min-height: 96px; height: 96px; }
}

.ns-faq-modal__panel::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: 24px;
  background:
    radial-gradient(70% 60% at 25% 20%, rgba(102,243,255,.22), transparent 62%),
    radial-gradient(70% 60% at 78% 18%, rgba(255,77,206,.16), transparent 65%);
  pointer-events:none;
  filter: blur(2px);
}

.ns-faq-modal__x{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 1;
  cursor:pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.22);
}

.ns-faq-modal__title{
  position: relative;
  margin: 4px 0 12px;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: .02em;
}

.ns-faq-form{ position: relative; display:grid; gap: 10px; }
.ns-faq-form__row label{ display:block; font-size: 13px; color: rgba(234,242,255,.78); margin: 0 0 6px; }
.ns-faq-form__row input,
.ns-faq-form__row textarea{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: rgba(234,242,255,.92);
  padding: 12px 12px;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 18px rgba(0,0,0,.18);
}

/* Więcej miejsca na wiadomość (mniej "pustej przestrzeni" w modalu) */
.ns-faq-form__row textarea{
  min-height: 220px;
  resize: vertical;
}
.ns-faq-form__row input:focus,
.ns-faq-form__row textarea:focus{
  border-color: rgba(102,243,255,.75);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 0 4px rgba(102,243,255,.10),
    0 0 24px rgba(102,243,255,.18);
}

.ns-faq-form__hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Cloudflare Turnstile */
.ns-faq-form__turnstile{ display:flex; justify-content:center; margin-top: 2px; }
.ns-turnstile{ min-height: 65px; }

.ns-faq-form__actions{ display:flex; justify-content:flex-end; margin-top: 4px; }
.ns-faq-form__submit{
  border: 0;
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  color: rgba(255,255,255,.95);
  background: linear-gradient(135deg, rgba(102,243,255,.18), rgba(255,77,206,.12));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 18px rgba(102,243,255,.20);
  font-weight: 900;
  letter-spacing: .02em;
}
.ns-faq-form__submit:hover{
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 28px rgba(102,243,255,.30);
  transform: translateY(-1px);
}

.ns-faq-form__hint{ margin: 8px 0 0; font-size: 12px; color: rgba(234,242,255,.68); }
