/* ============================================================
   SchoolFMS — Pricing Page (pricing.css)
   ============================================================ */

.pricing-section { padding: 80px 6% 60px; background: var(--light); }
.pricing-inner { max-width: 1100px; margin: 0 auto; }

/* Plans Grid */
.plans-grid {
  display: grid; grid-template-columns: 1fr 1.08fr 1fr;
  gap: 0; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

.plan-card {
  background: var(--white); padding: 44px 36px;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  position: relative; transition: transform 0.3s;
}
.plan-card:first-child { border-radius: var(--radius-xl) 0 0 var(--radius-xl); border-right: none; }
.plan-card:last-child  { border-radius: 0 var(--radius-xl) var(--radius-xl) 0; border-left: none; }
.plan-card:first-child:hover { transform: translateX(-3px); }
.plan-card:last-child:hover  { transform: translateX(3px); }

.plan-card.featured {
  background: var(--navy); border-color: transparent;
  padding: 52px 40px; z-index: 2;
  box-shadow: -8px 0 32px rgba(11,29,58,0.18), 8px 0 32px rgba(11,29,58,0.18);
}
.plan-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--green));
}
.plan-ribbon {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: var(--white); font-size: 0.67rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
}

.plan-top { margin-bottom: 24px; }
.plan-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.plan-card:not(.featured) .plan-name { color: var(--navy); }
.plan-card.featured .plan-name { color: rgba(255,255,255,0.8); }
.plan-cap { font-size: 0.78rem; margin-bottom: 16px; }
.plan-card:not(.featured) .plan-cap { color: var(--gray); }
.plan-card.featured .plan-cap { color: rgba(255,255,255,0.45); }
.plan-price { display: flex; align-items: flex-end; gap: 2px; margin-bottom: 12px; }
.plan-pkr { font-size: 0.95rem; font-family: var(--font-display); font-weight: 700; padding-bottom: 8px; }
.plan-card:not(.featured) .plan-pkr { color: var(--navy); }
.plan-card.featured .plan-pkr { color: rgba(255,255,255,0.55); }
.plan-amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 900; line-height: 1; }
.plan-card:not(.featured) .plan-amount { color: var(--navy); }
.plan-card.featured .plan-amount { color: var(--white); }
.plan-mo { font-size: 0.8rem; padding-bottom: 10px; }
.plan-card:not(.featured) .plan-mo { color: var(--gray); }
.plan-card.featured .plan-mo { color: rgba(255,255,255,0.38); }
.plan-desc { font-size: 0.845rem; line-height: 1.65; }
.plan-card:not(.featured) .plan-desc { color: var(--gray); }
.plan-card.featured .plan-desc { color: rgba(255,255,255,0.48); }

.plan-divider { height: 1px; margin-bottom: 22px; }
.plan-card:not(.featured) .plan-divider { background: var(--border); }
.plan-card.featured .plan-divider { background: rgba(255,255,255,0.1); }

.plan-features { flex: 1; list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.plan-features li { font-size: 0.845rem; padding: 8px 0; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid; }
.plan-card:not(.featured) .plan-features li { color: var(--gray); border-color: rgba(226,234,244,0.7); }
.plan-card.featured .plan-features li { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.07); }
.plan-features li:last-child { border: none; }
.plan-features li::before { content: '✓'; font-size: 0.7rem; font-weight: 800; flex-shrink: 0; width: 16px; }
.pf-yes::before { color: var(--green); }
.pf-no  { opacity: 0.4; }
.pf-no::before { content: '—'; color: var(--gray-light) !important; }

.plan-btn { display: block; text-align: center; padding: 13px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 700; }
.plan-card.featured .btn-primary { box-shadow: 0 8px 24px rgba(26,86,219,0.45); }
.plan-card:not(.featured) .btn-outline:hover { background: var(--light); }

/* Registration note */
.reg-note {
  background: rgba(26,86,219,0.05);
  border: 1px solid rgba(26,86,219,0.12);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.rn-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.reg-note strong { font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 4px; }
.reg-note p { font-size: 0.845rem; color: var(--gray); line-height: 1.65; }

/* Trust strip */
.trust-strip { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 16px 0; }
.ts-item { font-size: 0.8rem; color: var(--gray); font-weight: 500; }

/* FAQ */
.faq-section { padding: 90px 6%; background: var(--white); }
.faq-inner { max-width: 960px; margin: 0 auto; }
.faq-title { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); margin: 10px 0; }
.faq-title em { font-style: italic; color: var(--blue); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item {
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: all 0.25s; cursor: pointer;
}
.faq-item:hover { border-color: rgba(26,86,219,0.2); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px;
}
.faq-q span { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.faq-toggle {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(26,86,219,0.08); color: var(--blue);
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.faq-item.open .faq-toggle { background: var(--blue); color: var(--white); }
.faq-a {
  font-size: 0.865rem; color: var(--gray); line-height: 1.72;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

@media (max-width: 960px) {
  .plans-grid { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .plan-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-right: 1px solid var(--border); border-bottom: none; }
  .plan-card:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-left: 1px solid var(--border); border-top: none; }
  .plan-card:first-child:hover, .plan-card:last-child:hover { transform: none; }
  .faq-grid { grid-template-columns: 1fr; }
}
