/* ==========================================================================
   NEGAREH PLATFORM - SECTION 7 (پرسش‌های متداول و مرکز راهنمایی / FAQ & Support)
   Namespace: .ng-section7, .ng-s7-...
   Aesthetic: Modern SaaS Educational, High-Trust, Clean Minimalist RTL
   ========================================================================== */

.ng-section7 {
  position: relative;
  background-color: #fcfdfe;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(0, 107, 115, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(60, 198, 200, 0.04) 0%, transparent 45%);
  padding-top: 100px;
  padding-bottom: 110px;
  color: #0f172a;
  font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  border-top: 1px solid #edf2f7;
}

/* Ambient Subtle Lighting */
.ng-s7-ambient {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.ng-s7-ambient--top {
  top: 10%;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 107, 115, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.ng-s7-ambient--bottom {
  bottom: 5%;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(60, 198, 200, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}

/* Main Container */
.ng-s7-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   HEADER (Eyebrow + Title + Subtitle)
   -------------------------------------------------------------------------- */
.ng-s7-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ng-s7-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Eyebrow Pill */
.ng-s7-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(0, 107, 115, 0.06);
  border: 1px solid rgba(0, 107, 115, 0.14);
  color: #006B73;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.ng-s7-eyebrow-icon {
  width: 15px;
  height: 15px;
  color: #006B73;
}

/* Title */
.ng-s7-title {
  font-size: 34px;
  font-weight: 800;
  color: #0b1c2d;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

/* Subtitle */
.ng-s7-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  font-weight: 400;
  margin: 0;
}

/* --------------------------------------------------------------------------
   CATEGORY TABS BAR
   -------------------------------------------------------------------------- */
.ng-s7-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.ng-s7-tabs.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s7-tab-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  outline: none;
}

.ng-s7-tab-btn:hover {
  border-color: #cbd5e1;
  color: #006B73;
  background: #f8fafc;
}

.ng-s7-tab-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 107, 115, 0.2);
}

.ng-s7-tab-btn.is-active {
  background: #006B73;
  border-color: #006B73;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 107, 115, 0.2);
}

/* --------------------------------------------------------------------------
   LAYOUT: 2-COLUMN (Accordion on Right + Roadmap/Support Card on Left)
   -------------------------------------------------------------------------- */
.ng-s7-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   ACCORDION COLUMN (Right)
   -------------------------------------------------------------------------- */
.ng-s7-accordion-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ng-s7-accordion-item {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 18px;
  overflow: hidden;
  transition: 
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  box-shadow: 0 2px 8px rgba(11, 28, 45, 0.02);
  opacity: 0;
  transform: translateY(16px);
}

.ng-s7-accordion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s7-accordion-item:hover {
  border-color: rgba(60, 198, 200, 0.4);
  box-shadow: 0 6px 18px rgba(11, 28, 45, 0.04);
}

.ng-s7-accordion-item.is-open {
  border-color: rgba(0, 107, 115, 0.28);
  box-shadow: 0 10px 24px -4px rgba(0, 107, 115, 0.07);
}

/* Accordion Trigger Button */
.ng-s7-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  outline: none;
}

.ng-s7-accordion-trigger:focus-visible {
  background: #f8fafc;
}

.ng-s7-question-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
}

.ng-s7-question-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #0b1c2d;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.ng-s7-accordion-item.is-open .ng-s7-question-text {
  color: #006B73;
}

/* Optional Tag */
.ng-s7-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f0fafb;
  color: #006B73;
  border: 1px solid rgba(0, 107, 115, 0.12);
  white-space: nowrap;
}

/* Accordion Icon (+ / - rotation) */
.ng-s7-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
  transition: 
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-s7-accordion-item.is-open .ng-s7-icon-wrapper {
  background: #006B73;
  color: #ffffff;
  transform: rotate(45deg);
}

.ng-s7-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

/* Accordion Content Panel (Smooth Zero-Jump Expansion) */
.ng-s7-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-s7-accordion-item.is-open .ng-s7-accordion-panel {
  grid-template-rows: 1fr;
}

.ng-s7-panel-inner {
  overflow: hidden;
}

.ng-s7-answer-content {
  padding: 0 24px 22px 24px;
  border-top: 1px solid transparent;
}

.ng-s7-accordion-item.is-open .ng-s7-answer-content {
  border-top-color: #f1f5f9;
  padding-top: 16px;
}

.ng-s7-answer-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: #475569;
  margin: 0;
}

/* --------------------------------------------------------------------------
   SIDEBAR COLUMN (Left: Quick Roadmap & Support Card)
   -------------------------------------------------------------------------- */
.ng-s7-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 32px;
}

/* 1. Roadmap Card */
.ng-s7-roadmap-card {
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 
    0 2px 14px -2px rgba(11, 28, 45, 0.03),
    0 1px 4px rgba(11, 28, 45, 0.02);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.ng-s7-roadmap-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s7-roadmap-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.ng-s7-roadmap-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e6f7f8;
  color: #006B73;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ng-s7-roadmap-icon-box svg {
  width: 20px;
  height: 20px;
}

.ng-s7-roadmap-title {
  font-size: 17px;
  font-weight: 800;
  color: #0b1c2d;
  margin: 0;
}

.ng-s7-roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ng-s7-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.ng-s7-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: 15px;
  bottom: -14px;
  width: 2px;
  background: #e2e8f0;
}

.ng-s7-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #006B73;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.ng-s7-step-info {
  display: flex;
  flex-direction: column;
}

.ng-s7-step-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0b1c2d;
  margin-bottom: 3px;
}

.ng-s7-step-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

/* 2. Direct Support Box */
.ng-s7-support-box {
  background: linear-gradient(135deg, #0b1c2d 0%, #00363a 100%);
  border-radius: 22px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 12px 30px -8px rgba(11, 28, 45, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.ng-s7-support-box.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ng-s7-support-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ng-s7-support-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #3CC6C8;
  background: rgba(60, 198, 200, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
}

.ng-s7-support-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3CC6C8;
  box-shadow: 0 0 8px #3CC6C8;
}

.ng-s7-support-title {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #ffffff;
}

.ng-s7-support-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 0 20px 0;
}

.ng-s7-support-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.ng-s7-support-phone:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(60, 198, 200, 0.4);
}

.ng-s7-phone-label {
  font-size: 13px;
  color: #cbd5e1;
}

.ng-s7-phone-number {
  font-size: 16px;
  font-weight: 800;
  color: #3CC6C8;
  direction: ltr;
  letter-spacing: 0.5px;
}

.ng-s7-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #3CC6C8;
  color: #0b1c2d;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(60, 198, 200, 0.35);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.ng-s7-support-btn:hover {
  background: #ffffff;
  color: #006B73;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.2);
}

.ng-s7-support-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ng-section7 {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .ng-s7-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ng-s7-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ng-section7 {
    padding-top: 68px;
    padding-bottom: 76px;
  }

  .ng-s7-title {
    font-size: 26px;
  }

  .ng-s7-subtitle {
    font-size: 14.5px;
  }

  .ng-s7-sidebar {
    grid-template-columns: 1fr;
  }

  .ng-s7-accordion-trigger {
    padding: 16px 18px;
  }

  .ng-s7-question-text {
    font-size: 14.5px;
  }

  .ng-s7-answer-content {
    padding: 0 18px 18px 18px;
  }

  .ng-s7-answer-text {
    font-size: 13.5px;
  }

  .ng-s7-tabs {
    gap: 8px;
  }

  .ng-s7-tab-btn {
    font-size: 13px;
    padding: 7px 14px;
  }
}

/* --------------------------------------------------------------------------
   PREFERS REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ng-s7-header,
  .ng-s7-tabs,
  .ng-s7-accordion-item,
  .ng-s7-roadmap-card,
  .ng-s7-support-box {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ng-s7-support-btn:hover {
    transform: none !important;
  }
}
