/* ============================================================
   CanApprove Live Counselling — Main Stylesheet
   ============================================================ */

/* ── Variables ── */
:root {
  --ca-primary:      #1a56db;
  --ca-primary-dark: #1648c0;
  --ca-success:      #057a55;
  --ca-surface:      #f9fafb;
  --ca-border:       #e5e7eb;
  --ca-text:         #111827;
  --ca-muted:        #6b7280;
  --ca-radius:       0.875rem;
  --ca-shadow:       0 2px 12px rgba(0,0,0,.08);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ca-text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Navbar ── */
.ca-navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  padding: .75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.ca-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.ca-logo-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,.3);
  padding-left: .5rem;
  margin-left: .25rem;
}

.ca-navbar .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-size: .875rem;
  transition: color .2s;
  border-radius: .4rem;
  padding: .45rem .75rem !important;
}

.ca-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.1); }

/* ── Hero ── */
.ca-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, #eff6ff 0%, #f0fdf4 100%);
  min-height: 85vh;
}

@media (max-width: 768px) { .ca-hero { min-height: auto; padding: 3rem 0 2rem; } }

/* ── Feature Cards ── */
.ca-feature-card {
  background: #fff;
  border-radius: var(--ca-radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--ca-shadow);
  transition: transform .2s, box-shadow .2s;
}
.ca-feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.ca-feature-icon {
  font-size: 1.75rem;
  width: 56px; height: 56px;
  background: var(--ca-surface);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}

/* ── Steps ── */
.ca-step-badge {
  width: 44px; height: 44px;
  background: var(--ca-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin: 0 auto;
}

.ca-step-icon {
  font-size: 2rem;
  color: var(--ca-primary);
}

/* ── Testimonials ── */
.ca-testimonial-card {
  background: #fff;
  border-radius: var(--ca-radius);
  padding: 1.5rem;
  box-shadow: var(--ca-shadow);
  border-left: 4px solid var(--ca-primary);
  transition: box-shadow .2s;
}
.ca-testimonial-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.ca-avatar { object-fit: cover; border: 2px solid var(--ca-border); }

/* ── CTA Banner ── */
.ca-cta-banner {
  background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
}

/* ── Footer ── */
.ca-footer {
  background: #f9fafb;
  border-top: 1px solid var(--ca-border);
}

/* ── Auth Modal ── */
.otp-digit {
  width: 52px !important;
  height: 56px;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: .5rem;
  border: 2px solid var(--ca-border);
  transition: border-color .2s;
}
.otp-digit:focus { border-color: var(--ca-primary); box-shadow: 0 0 0 3px rgba(26,86,219,.15); }

/* ── Stepper ── */
.ca-stepper { position: relative; }

.ca-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  width: 80px;
}

.ca-step span {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700;
  background: var(--ca-border);
  color: var(--ca-muted);
  transition: all .25s;
}

.ca-step small { font-size: .65rem; color: var(--ca-muted); font-weight: 500; }

.ca-step.active span  { background: var(--ca-primary); color: #fff; }
.ca-step.done span    { background: var(--ca-success); color: #fff; }
.ca-step.active small { color: var(--ca-primary); font-weight: 600; }

.ca-step-line {
  flex: 1;
  height: 2px;
  background: var(--ca-border);
  margin-top: 16px;
  max-width: 60px;
}

/* ── Radio cards ── */
.ca-radio-label {
  cursor: pointer;
  transition: all .2s;
}
.ca-radio-label:hover { border-color: var(--ca-primary) !important; }
.ca-radio-label.selected {
  border-color: var(--ca-primary) !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 2px rgba(26,86,219,.2);
}

/* ── Profile ── */
.ca-profile-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--ca-primary), #7c3aed);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  margin: 0 auto;
}

.ca-detail-item {
  padding: .75rem;
  background: var(--ca-surface);
  border-radius: .5rem;
}

/* ── Pulse ── */
.ca-pulse-dot {
  width: 12px; height: 12px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

/* ── Utility ── */
.cursor-pointer { cursor: pointer; }
.tracking-wide  { letter-spacing: .06em; }
