/* ── ServicePath 360 - Custom Styles ── */

:root {
  --brand: #1D6FA8;
  --brand-dark: #0C447C;
  --brand-light: #D9EDF8;
  --brand-bg: #F0F6FB;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9CA3AF;
  --border: #E0E4E8;
  --border-hero: #D0DEE8;
  --green: #3B6D11;
  --green-bg: #EAF3DE;
  --green-border: #C0DD97;
  --purple: #3A46A5;
  --purple-bg: #E8EFFE;
  --purple-border: #C4CFF7;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: #fff;
}

/* ── BRAND ── */
.text-brand { color: var(--brand); }

/* ── NAVBAR ── */
.sp-nav {
  background: #fff;
  border-bottom: 0.5px solid var(--border);
  padding: 14px 40px;
}
.sp-logo-icon {
  width: 28px; height: 28px;
  background: var(--brand);
  border-radius: 6px;
  flex-shrink: 0;
}
.sp-logo-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
.navbar-brand:hover .sp-logo-name { color: var(--text-primary); }
.nav-link {
  font-size: 13px;
  color: var(--text-secondary) !important;
  padding: 0 !important;
}
.nav-link:hover { color: var(--brand) !important; }

/* ── BUTTONS ── */
.sp-btn-primary {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 7px;
  border: none;
  transition: background 0.15s;
}
.sp-btn-primary:hover { background: var(--brand-dark); color: #fff; }

.sp-btn-secondary {
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 7px;
  border: 1.5px solid var(--brand);
  transition: background 0.15s, color 0.15s;
}
.sp-btn-secondary:hover { background: var(--brand-bg); color: var(--brand); }

.sp-btn-white {
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 26px;
  border-radius: 7px;
  border: none;
}
.sp-btn-outline-white {
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.sp-btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── RFI MODAL ── */
.sp-modal-content {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.13);
}
.sp-modal-header {
  padding: 24px 24px 12px;
  align-items: flex-start;
}
.sp-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.sp-modal-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.sp-modal-body {
  padding: 0 24px 24px;
}
.sp-form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}
.sp-form-optional {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.sp-form-input {
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sp-form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 111, 168, 0.12);
  outline: none;
}
.sp-form-input.is-invalid { border-color: #dc3545; }
.sp-form-input::placeholder { color: var(--text-muted); }
.sp-btn-submit { font-size: 14px; padding: 12px; }
.sp-form-legal {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 0;
}
.sp-success-icon { width: 48px; height: 48px; }
.sp-success-h {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.sp-success-p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── BADGES ── */
.sp-badge {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sp-badge-blue {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.sp-badge-green {
  background: var(--green-bg);
  color: var(--green);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── HERO ── */
.sp-hero {
  background: var(--brand-bg);
  border-bottom: 0.5px solid var(--border-hero);
  padding: 64px 0 0;
}
.sp-hero-h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}
.sp-hero-sub-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 28px;
}
.sp-hero-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── PHONE ── */
.sp-phone-frame {
  width: 210px;
  border-radius: 34px;
  background: #1a1a1a;
  padding: 8px;
  flex-shrink: 0;
}
.sp-phone-screen {
  background: #F4F6F8;
  border-radius: 27px;
  overflow: hidden;
}
.sp-notch {
  width: 66px; height: 18px;
  background: #1a1a1a;
  border-radius: 0 0 13px 13px;
  margin: 0 auto;
}
.sp-statusbar { background: #fff; }
.sp-time { font-size: 9px; font-weight: 500; color: #1a1a1a; }
.sp-app-topbar {
  background: #fff;
  border-bottom: 0.5px solid var(--border);
}
.sp-app-logo-dot {
  width: 17px; height: 17px;
  background: var(--brand);
  border-radius: 4px;
}
.sp-app-logo-name { font-size: 8px; font-weight: 500; color: #1a1a1a; }
.sp-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 7px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.sp-app-title { font-size: 10px; font-weight: 500; color: #1a1a1a; margin-bottom: 8px; }

/* phone status cards */
.sp-status-card {
  border-radius: 8px;
  padding: 8px 9px;
}
.sp-status-card.approved { background: #EAF6F1; border: 0.5px solid #5DCAA5; }
.sp-status-card.pending  { background: #FFF8E6; border: 0.5px solid #EF9F27; }
.sp-status-card.remaining{ background: #FEF0F0; border: 0.5px solid #F09595; }
.sp-sc-icon {
  width: 22px; height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
}
.approved-icon  { background: #1D9E75; }
.pending-icon   { background: #BA7517; }
.remaining-icon { background: #A32D2D; }
.sp-sc-label { font-size: 7px; color: var(--text-secondary); margin-bottom: 1px; }
.sp-sc-num { font-size: 13px; font-weight: 500; }
.approved-num  { color: #085041; }
.pending-num   { color: #633806; }
.remaining-num { color: #791F1F; }
.sp-sc-sub { font-size: 7px; }
.approved-sub  { color: #0F6E56; }
.pending-sub   { color: #854F0B; }
.remaining-sub { color: #A32D2D; }

.sp-log-card {
  background: #fff;
  border-radius: 8px;
  border: 0.5px solid var(--border);
}
.sp-log-title { font-size: 9px; font-weight: 500; color: #1a1a1a; }
.sp-log-bar {
  width: 3px; height: 9px;
  background: var(--brand);
  border-radius: 2px;
}
.sp-fi-label { font-size: 7px; color: var(--text-secondary); display: block; margin-bottom: 2px; }
.sp-fi {
  background: #F4F6F8;
  border: 0.5px solid #D1D5DB;
  border-radius: 4px;
  height: 18px;
  font-size: 7px;
  color: var(--text-muted);
  padding: 0 6px;
  display: flex; align-items: center;
}
.sp-log-submit {
  background: var(--brand);
  color: #fff;
  font-size: 8px;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 5px;
}
.sp-home-bar {
  height: 14px;
  background: #fff;
}
.sp-home-pill {
  width: 40px; height: 3px;
  background: #ccc;
  border-radius: 2px;
}

/* ── STATS BAR ── */
.sp-stats-bar {
  background: #fff;
  border-bottom: 0.5px solid var(--border);
}
.sp-stat-item { padding: 20px 16px; }
.sp-stat-num  { font-size: 26px; font-weight: 500; color: var(--brand); }
.sp-stat-label{ font-size: 11px; color: var(--text-secondary); margin-top: 3px; }

/* ── SECTIONS ── */
.sp-section { background: #fff; }
.sp-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.sp-section-h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.sp-section-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 0;
}

/* ── FEATURE CARDS ── */
.sp-feature-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s;
}
.sp-feature-card:hover { border-color: var(--brand); }
.sp-feature-icon {
  width: 34px; height: 34px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.sp-feature-h3 { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.sp-feature-p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ── HOW IT WORKS ── */
.sp-how {
  background: var(--brand-bg);
  border-top: 0.5px solid var(--border-hero);
  border-bottom: 0.5px solid var(--border-hero);
}
.sp-steps-row { padding-top: 8px; }
.sp-steps-connector {
  position: absolute;
  top: 16px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: #B5D4F4;
  z-index: 0;
}
.sp-step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.sp-step-h4 { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 5px; }
.sp-step-p  { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* ── ROLE CARDS ── */
.sp-role-card { border-radius: 10px; border: 0.5px solid var(--border); }
.sp-role-card.admin   { background: #EAF4FB; border-color: #B5D4F4; }
.sp-role-card.parent  { background: var(--green-bg); border-color: var(--green-border); }
.sp-role-card.student { background: var(--purple-bg); border-color: var(--purple-border); }
.sp-role-tag { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.admin-tag   { color: #185FA5; }
.parent-tag  { color: var(--green); }
.student-tag { color: var(--purple); }
.sp-role-h3  { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 10px; }
.sp-role-list { list-style: none; padding: 0; margin: 0; }
.sp-role-list li {
  font-size: 12px;
  color: #4b5563;
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}
.sp-role-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.admin .sp-role-list li::before   { background: #185FA5; }
.parent .sp-role-list li::before  { background: var(--green); }
.student .sp-role-list li::before { background: var(--purple); }

/* ── PRICING ── */
.sp-pricing {
  background: var(--brand-bg);
  border-top: 0.5px solid var(--border-hero);
  border-bottom: 0.5px solid var(--border-hero);
}
.sp-portal-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.sp-portal-card.featured { border: 2px solid var(--brand); }
.sp-portal-header { border-bottom: 0.5px solid var(--border); }
.sp-portal-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sp-portal-h3   { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.sp-portal-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.sp-tier-row {
  background: #F8FAFC;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  padding: 10px 14px;
}
.sp-tier-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.small-dot { background: #5DCAA5; }
.mid-dot   { background: var(--brand); }
.large-dot { background: #534AB7; }
.sp-tier-name     { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.sp-tier-size     { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sp-tier-price    { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.sp-tier-price-sub{ font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.sp-bundle-row {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 12px;
}
.sp-bundle-h3   { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.sp-bundle-p    { font-size: 13px; color: var(--text-secondary); line-height: 1.6; max-width: 420px; margin: 0; }
.sp-bundle-save { font-size: 12px; color: var(--green); font-weight: 500; }
.sp-pricing-note{ font-size: 11px; color: var(--text-muted); line-height: 1.6; }

/* ── CTA BANNER ── */
.sp-cta-banner { background: var(--brand); }
.sp-cta-h2 { font-size: 26px; font-weight: 500; color: #fff; margin-bottom: 10px; }
.sp-cta-p  { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }

/* ── FOOTER ── */
.sp-footer {
  background: #fff;
  border-top: 0.5px solid var(--border);
}
.sp-footer-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
.sp-footer-link:hover { color: var(--brand); }
.sp-footer-copy { font-size: 12px; color: var(--text-muted); }

/* ── LEGAL PAGES ── */
.sp-legal-page { max-width: 860px; }
.sp-legal-h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.sp-legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.sp-legal-h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 10px;
}
.sp-legal-h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 6px;
}
.sp-legal-page p,
.sp-legal-page li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}
.sp-legal-page ul { padding-left: 20px; margin-bottom: 12px; }
.sp-legal-page a { color: var(--brand); }
.sp-legal-page a:hover { color: var(--brand-dark); }
