/* ── KamgarPortal Frontend Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --kp-blue-900: #1e3a8a;
  --kp-blue-800: #1d4ed8;
  --kp-blue-600: #2563eb;
  --kp-indigo:   #4338ca;
  --kp-green:    #16a34a;
  --kp-teal:     #0d9488;
  --kp-red:      #dc2626;
}

.kp-wrap { font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; }
.kp-wrap * { box-sizing: border-box; }

/* ── HERO ── */
.kp-hero {
  background: linear-gradient(135deg, var(--kp-blue-900), var(--kp-blue-800), var(--kp-indigo));
  padding: 60px 20px 80px;
  text-align: center;
  color: white;
}
.kp-hero-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 12px; }
.kp-hero-sub   { font-size: 1.15rem; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.kp-search-bar { display: flex; max-width: 560px; margin: 0 auto; gap: 10px; }
.kp-search-bar .form-control { border-radius: 12px; padding: 12px 18px; font-size: 1rem; border: none; }

/* ── PAGE HEADER ── */
.kp-page-header {
  background: linear-gradient(135deg, var(--kp-blue-900), var(--kp-blue-800), var(--kp-indigo));
  padding: 40px 20px 60px;
  text-align: center;
  color: white;
}
.kp-page-header h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.kp-page-header p  { color: rgba(255,255,255,.75); margin: 0; }

/* ── SECTION ── */
.kp-section-title { font-size: 1.6rem; font-weight: 700; color: #1e293b; }
.kp-section-alt   { background: #f8fafc; }

/* ── CATEGORY CARDS ── */
.kp-cat-card {
  background: linear-gradient(135deg, var(--kp-blue-900), var(--kp-blue-800));
  color: white !important;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.kp-cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(29,78,216,.3); }
.kp-cat-icon  { font-size: 1.5rem; }
.kp-cat-name  { font-size: .78rem; font-weight: 600; line-height: 1.3; }

/* ── INFO CARDS ── */
.kp-info-card { background: white; border: 1px solid #e2e8f0; transition: box-shadow .2s; }
.kp-info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.kp-info-icon { font-size: 2rem; }

/* ── CTA ── */
.kp-cta { background: linear-gradient(135deg, var(--kp-blue-800), var(--kp-indigo)); }

/* ── BUTTONS ── */
.kp-btn-primary { background: linear-gradient(135deg, var(--kp-blue-800), var(--kp-indigo)); color: white !important; border: none; border-radius: 10px; font-weight: 600; padding: 10px 22px; transition: opacity .2s, transform .15s; }
.kp-btn-primary:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.kp-btn-primary:disabled { opacity: .6; }
.kp-btn-light { background: white; color: var(--kp-blue-800) !important; border: none; border-radius: 10px; font-weight: 600; padding: 10px 22px; }

/* ── CARD ── */
.kp-card { background: white; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* ── FILTER BAR ── */
.kp-filter-bar { background: white; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* ── WORKER CARD ── */
.kp-worker-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.kp-worker-card:hover { box-shadow: 0 6px 24px rgba(29,78,216,.12); transform: translateY(-2px); }
.kp-worker-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg,var(--kp-blue-800),var(--kp-indigo)); color: white; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.kp-worker-name   { font-weight: 700; font-size: 1rem; color: #1e293b; }
.kp-worker-cat    { font-size: .78rem; color: white; background: var(--kp-blue-800); padding: 2px 10px; border-radius: 20px; display: inline-block; }
.kp-worker-loc    { font-size: .82rem; color: #64748b; margin-top: 6px; }
.kp-worker-phone  { font-weight: 600; color: var(--kp-blue-800); text-decoration: none !important; font-size: .9rem; }

/* ── STATUS BADGES ── */
.kp-badge-active   { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.kp-badge-inactive { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.kp-status-active  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.kp-status-inactive{ background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }

/* ── PLAN CARDS ── */
.kp-plan-card { border-radius: 16px; overflow: hidden; border: 2px solid transparent; transition: transform .2s, box-shadow .2s; }
.kp-plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.15); }
.kp-plan-header { padding: 24px 20px 20px; color: white; position: relative; }
.kp-plan-header h3, .kp-plan-header h4 { margin: 0 0 4px; font-weight: 700; }
.kp-plan-price { font-size: 2.2rem; font-weight: 800; color: white; }
.kp-plan-price small { font-size: .85rem; font-weight: 400; opacity: .8; }
.kp-plan-body { background: white; padding: 16px; }
.kp-plan-body ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: .88rem; color: #374151; }
.kp-plan-body ul li { padding: 3px 0; }
.kp-plan-step { font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 20px; display: inline-block; margin-bottom: 8px; color: white; }
.kp-plan-green  { background: linear-gradient(135deg,#059669,#0d9488); border-color: #6ee7b7; }
.kp-plan-teal   { background: linear-gradient(135deg,#0d9488,#059669); border-color: #99f6e4; }
.kp-plan-slate  { background: linear-gradient(135deg,#475569,#334155); }
.kp-plan-blue   { background: linear-gradient(135deg,var(--kp-blue-600),var(--kp-blue-800)); border-color: #93c5fd !important; }
.kp-plan-purple { background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.kp-plan-amber  { background: linear-gradient(135deg,#d97706,#b45309); }
.kp-popular     { border-color: #3b82f6 !important; box-shadow: 0 4px 20px rgba(59,130,246,.3); }
.kp-popular-badge { background: #3b82f6; color: white; text-align: center; font-size: .72rem; font-weight: 700; padding: 5px; letter-spacing: .05em; }

/* ── AVATAR ── */
.kp-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--kp-blue-800),var(--kp-indigo)); color: white; font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.kp-cat-badge { display: inline-block; background: var(--kp-blue-800); color: white; padding: 4px 16px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.kp-detail-item { background: #f8fafc; border-radius: 10px; padding: 12px 16px; height: 100%; }
.kp-cat-tag { display: inline-block; background: #eff6ff; color: var(--kp-blue-800); padding: 2px 10px; border-radius: 20px; font-size: .78rem; }

/* ── INFO BAR ── */
.kp-info-bar   { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: .88rem; }
.kp-contact-info { background: #f8fafc; border: 1px solid #e2e8f0; }

/* ── SUCCESS MODAL ── */
.kp-success-icon { font-size: 3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 576px) {
  .kp-hero-title { font-size: 1.8rem; }
  .kp-search-bar { flex-direction: column; }
}
