/* ============================================================
   DraftWise India – main.css
   Brand: Outfit/Inter typography, violet-to-pink gradient
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --dw-violet: #6D28D9;
  --dw-violet-light: #7C3AED;
  --dw-pink: #EC4899;
  --dw-gradient: linear-gradient(135deg, #6D28D9 0%, #EC4899 100%);
  --dw-gradient-soft: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 100%);
  --dw-text: #1E1B4B;
  --dw-muted: #6B7280;
  --dw-border: #E5E7EB;
  --dw-bg: #FAFAFA;
  --dw-card: #FFFFFF;
  --dw-success: #059669;
  --dw-warning: #D97706;
  --dw-danger: #DC2626;
  --dw-radius: 12px;
  --dw-shadow: 0 2px 12px rgba(109,40,217,0.08);
  --dw-shadow-hover: 0 6px 24px rgba(109,40,217,0.16);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dw-bg);
  color: var(--dw-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 700; }

/* ── Navbar ── */
.navbar-dw {
  background: var(--dw-gradient) !important;
  box-shadow: 0 2px 8px rgba(109,40,217,0.2);
}
.navbar-dw .navbar-brand { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff !important; }
.navbar-dw .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; transition: color 0.2s; }
.navbar-dw .nav-link:hover, .navbar-dw .nav-link.active { color: #fff !important; }
.navbar-dw .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-dw .navbar-toggler-icon { filter: invert(1); }

/* ── Hero ── */
.hero-section {
  background: var(--dw-gradient);
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 40px;
  background: var(--dw-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-section h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ── Cards ── */
.dw-card {
  background: var(--dw-card);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  box-shadow: var(--dw-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.dw-card:hover { box-shadow: var(--dw-shadow-hover); transform: translateY(-2px); }

.category-card {
  cursor: pointer;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--dw-text);
  display: block;
  border-radius: var(--dw-radius);
}
.category-card .category-icon {
  font-size: 2.5rem;
  color: var(--dw-violet);
  margin-bottom: 0.75rem;
}
.category-card h5 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.category-card p { font-size: 0.8rem; color: var(--dw-muted); margin: 0; }
.category-card:hover { background: var(--dw-gradient-soft); }

/* ── Buttons ── */
.btn-dw-primary {
  background: var(--dw-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-dw-primary:hover { opacity: 0.9; color: white; transform: translateY(-1px); }
.btn-dw-outline {
  border: 2px solid var(--dw-violet);
  color: var(--dw-violet);
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  transition: all 0.2s;
}
.btn-dw-outline:hover { background: var(--dw-violet); color: white; }

/* ── Info Panel ── */
.info-panel {
  background: var(--dw-gradient-soft);
  border: 1px solid #DDD6FE;
  border-radius: var(--dw-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.info-panel .info-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: flex-start; font-size: 0.9rem; }
.info-panel .info-label { font-weight: 600; color: var(--dw-violet); min-width: 160px; }
.info-panel .info-value { color: var(--dw-text); }

/* ── Steps Progress ── */
.steps-bar { display: flex; align-items: center; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 0.5rem; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 70px; position: relative; }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dw-border);
  color: var(--dw-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  transition: all 0.3s;
  z-index: 1;
}
.step-item.active .step-circle { background: var(--dw-gradient); color: white; }
.step-item.done .step-circle { background: var(--dw-success); color: white; }
.step-label { font-size: 0.7rem; color: var(--dw-muted); margin-top: 4px; text-align: center; }
.step-line { flex: 1; height: 2px; background: var(--dw-border); margin: 0 -1px; margin-bottom: 18px; }
.step-item.done + .step-line { background: var(--dw-success); }

/* ── Disclaimer banner ── */
.disclaimer-banner {
  background: #FFF3CD;
  border: 1px solid #FBBF24;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #92400E;
  margin-bottom: 1.5rem;
}
.disclaimer-banner i { color: #D97706; margin-right: 0.4rem; }

/* ── Evidence / Submission checklists ── */
.checklist-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.checklist-item input[type="checkbox"] { margin-top: 3px; accent-color: var(--dw-violet); }

/* ── Escalation roadmap ── */
.escalation-step {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.75rem 0;
  border-left: 3px solid var(--dw-violet);
  padding-left: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
}
.escalation-step .step-num {
  background: var(--dw-gradient);
  color: white;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.escalation-step .step-action { font-weight: 600; font-size: 0.9rem; }
.escalation-step .step-timeline { font-size: 0.8rem; color: var(--dw-muted); }

/* ── Footer ── */
.footer-dw {
  background: var(--dw-text);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-dw a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; }
.footer-dw a:hover { color: white; }
.footer-dw .footer-brand { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: white; }
.footer-dw .footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 1rem; }

/* ── Toast ── */
#errorToast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }

/* ── Utility ── */
.text-violet { color: var(--dw-violet) !important; }
.bg-gradient-dw { background: var(--dw-gradient) !important; }
.section-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--dw-text); }
.section-title span { background: var(--dw-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

main { flex: 1; }
