/* ==========================================================
   CHECK ELIGIBILITY PAGE SPECIFIC STYLES
========================================================== */

/* ──── ELIGIBILITY WRAPPER ──── */
.eligibility-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

/* ──── ELIGIBILITY FORM CARD ──── */
.eligibility-form-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid var(--slate-200);
}

.form-header {
  margin-bottom: 32px;
  text-align: center;
  border-bottom: 2px solid var(--green-600);
  padding-bottom: 24px;
}

.form-header h2 {
  font-size: 1.8rem;
  color: var(--slate-900);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}

.form-header p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* ──── ELIGIBILITY FORM ──── */
.eligibility-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ──── FORM SECTIONS ──── */
.form-section {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section legend {
  padding: 0;
  margin: 0 0 12px 0;
  width: 100%;
}

/* ──── SECTION TITLE ──── */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-600);
}

.section-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ──── FORM ROW ──── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

/* ──── FORM GROUPS ──── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--slate-900);
  font-size: 0.95rem;
}

.form-control {
  padding: 12px 16px;
  border: 2px solid var(--slate-200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  color: var(--slate-900);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control::placeholder {
  color: var(--slate-400);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ──── MOBILE INPUT ──── */
.mobile-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-input-wrapper .country-code {
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 12px 12px;
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
}

.mobile-input-wrapper .form-control {
  flex: 1;
}

/* ──── PRICE INPUT ──── */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.price-input-wrapper .currency {
  position: absolute;
  left: 16px;
  font-weight: 600;
  color: var(--slate-600);
}

.price-input-wrapper .form-control {
  padding-left: 32px;
  width: 100%;
}

/* ──── CHECKBOX LABELS ──── */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--green-600);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--green-600);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* ──── SUBMIT BUTTON ──── */
.eligibility-form > button {
  margin-top: 12px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* ──── ELIGIBILITY CRITERIA SECTION ──── */
.eligibility-criteria {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eligibility-criteria .section-title {
  font-size: 1.4rem;
  border-color: var(--slate-200);
}

/* ──── CRITERIA CARDS ──── */
.criteria-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.criteria-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
}

.criteria-card h4 i {
  font-size: 1.2rem;
}

.criteria-card i.green {
  color: var(--green-600);
}

.criteria-card i.blue {
  color: var(--blue-600);
}

.criteria-card.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
  border-color: var(--blue-200);
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.criteria-list li {
  padding-left: 24px;
  position: relative;
  color: var(--slate-700);
  font-size: 0.95rem;
  line-height: 1.5;
}

.criteria-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 700;
  font-size: 1.1rem;
}

.criteria-card.info .criteria-list li:before {
  content: "→";
  color: var(--blue-600);
}

/* ──── MODAL STYLES ──── */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.3s ease;
}

.close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 28px;
  font-weight: bold;
  color: var(--slate-400);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--slate-900);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ──── ELIGIBILITY RESULT MESSAGE ──── */
.eligibility-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid;
}

.eligibility-result.eligible {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border-color: var(--green-600);
  color: var(--green-800);
}

.eligibility-result.not-eligible {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border-color: var(--red-600);
  color: var(--red-800);
}

.eligibility-result h3 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ──── RESPONSIVE ──── */
@media (max-width: 1200px) {
  .eligibility-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .eligibility-form-card {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-header h2 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .eligibility-criteria .section-title {
    font-size: 1.2rem;
  }

  .modal-content {
    margin: 20% auto;
    padding: 24px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .eligibility-form-card {
    padding: 16px;
  }

  .form-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .form-header h2 {
    font-size: 1.3rem;
  }

  .form-group {
    gap: 6px;
  }

  .criteria-card {
    padding: 16px;
  }

  .eligibility-form > button {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}
