/* ============================================================
   ESSE INDIA — ELIGIBILITY POPUP STYLES
   Location: /assets/css/eligibility-popup.css
   ============================================================ */

.ep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 12, 46, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ep-overlay.ep-open {
  opacity: 1;
  pointer-events: auto;
}

.ep-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px 30px;
  box-shadow: 0 30px 70px -20px rgba(26, 13, 61, .4);
  transform: translateY(18px) scale(.97);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3);
  font-family: 'Inter', Arial, sans-serif;
  color: #150c2e;
  max-height: 90vh;
  overflow-y: auto;
}
.ep-overlay.ep-open .ep-box {
  transform: translateY(0) scale(1);
}

.ep-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1ecfc;
  color: #4b21c4;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.ep-close:hover {
  background: #e2d6fb;
  transform: rotate(90deg);
}

.ep-tag {
  display: inline-block;
  background: #f1ecfc;
  color: #4b21c4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ep-box h3 {
  font-family: 'Outfit', 'Inter', Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}

.ep-box p.ep-sub {
  font-size: 13.5px;
  color: #6d6d80;
  margin: 0 0 22px;
  line-height: 1.5;
}

/* Error banner */
.ep-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: #fdf0ef;
  border: 1.5px solid #f3c6c1;
  color: #a4342b;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.ep-error.ep-show { display: flex; }
.ep-error i { margin-top: 2px; flex-shrink: 0; }

.ep-field { margin-bottom: 14px; }
.ep-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #150c2e;
}
.ep-field input,
.ep-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5def7;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #150c2e;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.ep-field input:focus,
.ep-field select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .12);
}
.ep-field input:disabled,
.ep-field select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.ep-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ep-submit {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #4b21c4, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.ep-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(75, 33, 196, .5);
}
.ep-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none !important;
}
.ep-submit .fa-circle-notch {
  animation: epSpin .7s linear infinite;
}
@keyframes epSpin { to { transform: rotate(360deg); } }

.ep-note {
  font-size: 11px;
  color: #9b96ab;
  text-align: center;
  margin-top: 12px;
}

/* Success state */
.ep-success {
  display: none;
  text-align: center;
  padding: 20px 0 10px;
}
.ep-success.ep-show { display: block; }

.ep-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(120deg, #4b21c4, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px -8px rgba(75, 33, 196, .4);
  animation: epPopIn .6s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes epPopIn {
  0%   { transform: scale(.3) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.ep-success h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #150c2e;
}
.ep-success p {
  font-size: 15px;
  color: #6d6d80;
  margin: 0 0 25px;
  line-height: 1.6;
}

.ep-done-btn {
  padding: 14px 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #4b21c4, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.ep-done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(75, 33, 196, .5);
}

/* Responsive */
@media (max-width: 480px) {
  .ep-box { padding: 30px 22px 24px; }
  .ep-row2 { grid-template-columns: 1fr; }
  .ep-success-icon { width: 65px; height: 65px; font-size: 32px; }
  .ep-success h3 { font-size: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ep-overlay,
  .ep-box,
  .ep-close,
  .ep-success-icon {
    transition: none !important;
    animation: none !important;
  }
}