/* ============================================================
   Shakumbhri AI Auto Blog Pro — Frontend Styles
   ============================================================ */

:root {
  --saibp-green:      #2d6a4f;
  --saibp-green-dark: #1b4332;
  --saibp-green-lt:   #52b788;
  --saibp-accent:     #25d366;
  --saibp-blue:       #2563eb;
  --saibp-gray-100:   #f8f9fa;
  --saibp-gray-200:   #e9ecef;
  --saibp-gray-600:   #6c757d;
  --saibp-radius:     8px;
  --saibp-shadow:     0 2px 12px rgba(0,0,0,.09);
}

/* ── Table of Contents ─────────────────────────────────────── */
.saibp-toc {
  background: var(--saibp-gray-100);
  border-left: 4px solid var(--saibp-green);
  border-radius: var(--saibp-radius);
  padding: 16px 20px;
  margin: 28px 0;
  max-width: 680px;
}
.saibp-toc__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--saibp-green-dark);
  margin-bottom: 10px;
}
.saibp-toc__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  color: var(--saibp-green);
  padding: 0 4px;
}
.saibp-toc__nav ol {
  margin: 0;
  padding-left: 20px;
  counter-reset: toc-counter;
}
.saibp-toc__nav li {
  margin: 5px 0;
  font-size: .92rem;
}
.saibp-toc__nav a {
  color: var(--saibp-green);
  text-decoration: none;
}
.saibp-toc__nav a:hover { text-decoration: underline; }
.saibp-toc__nav ul {
  margin: 4px 0 4px 16px;
  padding: 0;
  list-style: disc;
}

/* ── Lead Form ─────────────────────────────────────────────── */
.saibp-lead-form-wrap {
  background: linear-gradient(135deg, var(--saibp-green-dark) 0%, var(--saibp-green) 100%);
  border-radius: 12px;
  padding: 36px 40px;
  margin: 40px 0;
  color: #fff;
}
.saibp-lead-form__title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
}
.saibp-lead-form__subtitle {
  margin: 0 0 24px;
  opacity: .85;
  font-size: .95rem;
}

.saibp-form-row { margin-bottom: 16px; }
.saibp-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .saibp-lead-form-wrap { padding: 24px 18px; }
  .saibp-form-row--2col { grid-template-columns: 1fr; }
}
.saibp-form-group { display: flex; flex-direction: column; }
.saibp-form-group label {
  font-size: .83rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 5px;
}
.saibp-form-group input,
.saibp-form-group select,
.saibp-form-group textarea {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.saibp-form-group input::placeholder,
.saibp-form-group textarea::placeholder { color: rgba(255,255,255,.5); }
.saibp-form-group input:focus,
.saibp-form-group select:focus,
.saibp-form-group textarea:focus {
  border-color: var(--saibp-accent);
  background: rgba(255,255,255,.18);
}
.saibp-form-group select option { color: #222; background: #fff; }
.saibp-form-group--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.saibp-form-group--checkbox label {
  font-size: .85rem;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.saibp-btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 24px;
  text-decoration: none;
  transition: background .2s, transform .1s;
  text-align: center;
}
.saibp-btn--primary {
  background: var(--saibp-accent);
  color: #fff;
}
.saibp-btn--primary:hover { background: #1db954; transform: translateY(-1px); }
.saibp-btn--lg { padding: 14px 32px; font-size: 1.05rem; width: 100%; }
.saibp-btn--whatsapp {
  background: #25d366;
  color: #fff;
}
.saibp-btn--whatsapp:hover { background: #1da851; }

/* ── Notices ───────────────────────────────────────────────── */
.saibp-notice {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 600;
}
.saibp-notice--success { background: #d1e7dd; color: #0f5132; }
.saibp-notice--error   { background: #f8d7da; color: #842029; }

/* ── CTA Block ─────────────────────────────────────────────── */
.saibp-cta-block {
  background: var(--saibp-gray-100);
  border: 2px solid var(--saibp-green-lt);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
}
.saibp-cta-block h3 {
  color: var(--saibp-green-dark);
  font-size: 1.4rem;
  margin: 0 0 10px;
}
.saibp-cta-block p {
  color: var(--saibp-gray-600);
  margin: 0 0 20px;
}
.saibp-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── WhatsApp Float ────────────────────────────────────────── */
.saibp-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}
.saibp-wa-float:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,211,102,.5);
  color: #fff;
}
@media (max-width: 480px) {
  .saibp-wa-float { padding: 12px; border-radius: 50%; }
  .saibp-wa-label { display: none; }
}

/* ── Stat cards (admin) ────────────────────────────────────── */
.saibp-stat-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.saibp-stat-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px 28px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--saibp-shadow);
}
.saibp-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--saibp-green-dark);
}
.saibp-stat-label {
  font-size: .8rem;
  color: var(--saibp-gray-600);
  margin-top: 4px;
  text-align: center;
}
