/* ============================================================
   ESSE INDIA — ELIGIBILITY CHECKER PAGE
   Location: /assets/css/eligibility-checker.css
   ============================================================ */

.ec-hero {
  background: linear-gradient(160deg, var(--purple-950, #1a0d3d), var(--purple-600, #4b21c4) 120%);
  color: #fff;
  padding: 64px 0 110px;
  position: relative;
  overflow: hidden;
}
.ec-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(245, 180, 0, .18), transparent 55%);
  pointer-events: none;
}
.ec-hero .wrap { text-align: center; max-width: 760px; }

.ec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.ec-eyebrow i { color: var(--gold-light, #ffd76b); }

.ec-hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
}
.ec-hero h1 span {
  background: linear-gradient(90deg, var(--gold-light, #ffd76b), var(--gold, #f5b400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ec-hero p {
  color: #d9cff5;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.ec-hero-badges {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.ec-hero-badges span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #e7defa;
  font-weight: 500;
}
.ec-hero-badges i { color: var(--gold-light, #ffd76b); }

/* ---------- FORM CARD ---------- */
.ec-card-wrap {
  max-width: 720px;
  margin: -72px auto 90px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}
.ec-card {
  background: #fff;
  border-radius: var(--radius-lg, 28px);
  box-shadow: 0 20px 50px -20px rgba(75, 33, 196, .25);
  padding: 40px 40px 34px;
  border: 1px solid rgba(75, 33, 196, .06);
}
@media (max-width: 600px) { .ec-card { padding: 26px 20px 22px; } }

/* ---------- PROGRESS ---------- */
.ec-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.ec-progress-head b {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 13.5px;
  color: var(--purple-600, #4b21c4);
}
.ec-progress-head span { font-size: 12.5px; color: var(--gray, #6d6d80); }
.ec-progress-track {
  height: 6px;
  background: var(--lilac-100, #f1ecfc);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 30px;
}
.ec-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--purple-500, #6a35e6), var(--gold, #f5b400));
  transition: width .45s ease;
}

/* ---------- STEPS ---------- */
.ec-step { display: none; animation: ecFade .35s ease; }
.ec-step.active { display: block; }
@keyframes ecFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ec-step h2 { font-size: 21px; font-weight: 700; margin-bottom: 6px; color: var(--ink, #150c2e); }
.ec-step > p.ec-step-sub { color: var(--gray, #6d6d80); font-size: 13.5px; margin-bottom: 22px; }
.ec-mini-label {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink, #150c2e);
}

/* ---------- OPTION TILES ---------- */
.ec-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.ec-options:last-child { margin-bottom: 0; }

.ec-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1.5px solid var(--lilac-100, #f1ecfc);
  border-radius: var(--radius-sm, 12px);
  padding: 14px 16px;
  cursor: pointer;
  transition: .2s;
  background: var(--lilac-50, #f8f6fd);
  position: relative;
}
.ec-opt:hover { border-color: var(--purple-400, #8b5cf6); background: #fff; }
.ec-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ec-opt .ec-opt-ic {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lilac-100, #f1ecfc);
  color: var(--purple-600, #4b21c4);
  font-size: 15px;
  overflow: hidden;
}
.ec-opt .ec-opt-ic img.ec-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.ec-opt .ec-opt-label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #150c2e);
}
.ec-opt .ec-opt-sub {
  display: block;
  font-weight: 400;
  color: var(--gray, #6d6d80);
  font-size: 11.5px;
  margin-top: 1px;
}
.ec-opt.selected {
  border-color: var(--purple-500, #6a35e6);
  background: var(--lilac-100, #f1ecfc);
  box-shadow: 0 0 0 3px rgba(106, 53, 230, .12);
}
.ec-opt.selected .ec-opt-ic {
  background: var(--purple-500, #6a35e6);
  color: #fff;
}

/* ---------- TEXT INPUTS ---------- */
.ec-form-row { margin-bottom: 16px; }
.ec-form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #150c2e);
  margin-bottom: 6px;
}
.ec-form-row input,
.ec-form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--lilac-100, #f1ecfc);
  border-radius: var(--radius-sm, 12px);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #150c2e);
  background: var(--lilac-50, #f8f6fd);
  transition: .2s;
}
.ec-form-row input:focus,
.ec-form-row select:focus {
  outline: none;
  border-color: var(--purple-500, #6a35e6);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(106, 53, 230, .12);
}
.ec-form-row input::placeholder { color: var(--gray-light, #a6a6b8); }

/* ---------- NAV BUTTONS ---------- */
.ec-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.ec-btn {
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 50px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: .25s;
  border: none;
  font-family: inherit;
  text-decoration: none;
}
.ec-btn-primary {
  background: linear-gradient(135deg, var(--purple-500, #6a35e6), var(--purple-800, #321a7a));
  color: #fff;
}
.ec-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(106, 53, 230, .35);
}
.ec-btn-primary:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ec-btn-ghost {
  background: var(--lilac-100, #f1ecfc);
  color: var(--purple-600, #4b21c4);
}
.ec-btn-ghost:hover { background: #ece3fb; }
.ec-nav-spacer { flex: 1; }

/* ---------- ERROR BOX ---------- */
.ec-errors {
  background: #fff2f0;
  border: 1px solid #ffcfc7;
  color: #c23b2b;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 12px);
  margin-bottom: 20px;
}
.ec-errors ul { padding-left: 18px; list-style: disc; }

/* ---------- RESULT VIEW ---------- */
.ec-result { text-align: center; padding: 10px 0 6px; }
.ec-result-ring {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: conic-gradient(var(--purple-500, #6a35e6) calc(var(--score, 0) * 1%), var(--lilac-100, #f1ecfc) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ec-result-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 50%;
}
.ec-result-ring b {
  position: relative;
  font-size: 30px;
  font-family: var(--font-display, 'Outfit', sans-serif);
  color: var(--purple-600, #4b21c4);
}
.ec-result-ring small {
  position: relative;
  display: block;
  font-size: 10px;
  color: var(--gray, #6d6d80);
  font-weight: 600;
  margin-top: -2px;
}
.ec-result-band {
  display: inline-block;
  background: var(--lilac-100, #f1ecfc);
  color: var(--purple-600, #4b21c4);
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.ec-result h2 { font-size: 22px; margin-bottom: 8px; color: var(--ink, #150c2e); }
.ec-result p {
  color: var(--gray, #6d6d80);
  font-size: 14px;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 22px;
}
.ec-result-warn {
  color: #c23b2b !important;
  font-size: 12.5px !important;
  margin-top: -10px !important;
}
.ec-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- TRUST STRIP ---------- */
.ec-trust {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 20px;
}
.ec-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ec-trust-item {
  background: #fff;
  border-radius: var(--radius-md, 18px);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 30px -12px rgba(26, 13, 61, .18);
}
.ec-trust-item i { color: var(--gold, #f5b400); font-size: 18px; margin-bottom: 8px; }
.ec-trust-item b {
  display: block;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 15px;
  color: var(--ink, #150c2e);
}
.ec-trust-item span { font-size: 11.5px; color: var(--gray, #6d6d80); }

/* ---------- DIVIDER ---------- */
.ec-divider { margin: 18px 0 14px; border-top: 2px dashed var(--lilac-100, #f1ecfc); }
.ec-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--purple-400, #8b5cf6);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ec-section-label i { font-size: 13px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .ec-trust-grid { grid-template-columns: 1fr; }
  .ec-options { grid-template-columns: 1fr; }
  .ec-card-wrap { margin: -60px auto 60px; }
  .ec-trust { margin: 0 auto 60px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .ec-step,
  .ec-progress-fill,
  .ec-opt,
  .ec-btn {
    transition: none !important;
    animation: none !important;
  }
}