/* ==========================================================================
   LEAD-FORM.CSS - shared styles for includes/lead-form.php.
   Prefix: lf-
   This is a REUSABLE component (not tied to any single page). It is
   loaded automatically by includes/lead-form.php (once per page), so
   pages do NOT need to link it manually.
   ========================================================================== */

.lf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.lf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.lf-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.lf-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.lf-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.lf-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.lf-field { margin-bottom: 16px; }

.lf-form .form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
  display: inline-block;
}

.lf-form .form-control,
.lf-form .form-select {
  background: var(--bg-section);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 10px 14px;
  width: 100%;
  transition: var(--transition);
}

.lf-form .form-control:focus,
.lf-form .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.14);
  background: var(--bg-card);
  color: var(--text-primary);
}

.lf-form .form-control::placeholder { color: var(--text-muted); }

.lf-submit-btn {
  width: 100%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}

.lf-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lf-note {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

.lf-note i { color: var(--success); }

@media (max-width: 767px) {
  .lf-card { padding: 24px 20px; }
}

/* ==========================================================================
   SECURITY UI — honeypot, math CAPTCHA, submit-loading state, alerts.
   Added when lead-form.php was wired to includes/lead-form-handler.php.
   ========================================================================== */

.lf-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lf-captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lf-captcha-question {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-section);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.lf-captcha-question i { color: var(--primary); font-size: 0.9rem; }

.lf-captcha-input {
  width: 80px !important;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

.lf-captcha-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-section);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.lf-captcha-refresh-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@keyframes lfSpinOnce {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.lf-captcha-refresh-btn.lf-spin i {
  animation: lfSpinOnce 0.4s ease-in-out;
}

.lf-submit-btn {
  position: relative;
}

.lf-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.lf-btn-spinner { display: none; }

.lf-submit-btn.lf-btn-loading .lf-btn-label {
  opacity: 0;
  pointer-events: none;
}

.lf-submit-btn.lf-btn-loading .lf-btn-spinner {
  display: inline-block;
  position: absolute;
}

@keyframes lfFadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lf-alert {
  border-radius: var(--radius-md);
  padding: 12px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: lfFadeInDown 0.3s ease;
}

.lf-alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
}

[data-theme="dark"] .lf-alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.lf-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

[data-theme="dark"] .lf-alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}

@media (max-width: 767px) {
  .lf-captcha-box { flex-wrap: wrap; }
  .lf-captcha-input { width: 70px !important; }
}

/* ------------------------------------------------------------------------
   CTA SECTION (content left, lead-form right) - shared, so any page that
   uses <section class="smt-cta2"> + includes/lead-form.php looks right
   ------------------------------------------------------------------------ */

.smt-cta2 { background: var(--bg-section); }

.smt-cta2-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.smt-cta2-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 520px;
}

.smt-cta2-points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smt-cta2-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.smt-cta2-points i { color: var(--success); font-size: 1.05rem; }

.smt-cta2-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.smt-cta2-call-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--smt-grad, var(--gradient-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.smt-cta2-call-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smt-cta2-call-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}


/* ------------------------------------------------------------
   Syllabus PDF download popup (includes/pdf-download-gate.php)
   ------------------------------------------------------------ */
.pdfgate-modal .modal-dialog { max-width: 460px; }
.pdfgate-modal .modal-content { background: transparent; border: 0; box-shadow: none; }
.pdfgate-modal .modal-body { padding: 0; position: relative; }
.pdfgate-modal .lf-card { opacity: 1; transform: none; margin: 0; }
.pdfgate-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-section);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
