/**
 * @file
 * Pre-application eligibility checklist styles.
 */

/* ── Page-level overrides ── */
.page-apply-checklist .block-page-title-block,
.page-apply-checklist .breadcrumb-wrapper {
  display: none;
}

/* ── Checklist section ── */
.nteu-checklist {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--nteu-gray-50, #f9fafb);
}

.nteu-checklist__card {
  max-width: 700px;
  width: 100%;
  background: var(--nteu-white, #fff);
  border-radius: var(--nteu-radius, 12px);
  box-shadow: var(--nteu-shadow-lg, 0 12px 40px rgba(38, 3, 135, 0.15));
  padding: 48px 40px;
}

/* ── Header ── */
.nteu-checklist__header {
  text-align: center;
  margin-bottom: 36px;
}

.nteu-checklist__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nteu-purple, #260387), var(--nteu-purple-light, #5e5afe));
  color: var(--nteu-white, #fff);
  margin-bottom: 20px;
}

.nteu-checklist__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--nteu-purple, #260387);
  margin: 0 0 12px;
}

.nteu-checklist__subtitle {
  font-size: 1rem;
  color: var(--nteu-gray-600, #4b5563);
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* ── Fieldset groups ── */
.nteu-checklist__group {
  border: 1px solid var(--nteu-gray-100, #f3f4f6);
  border-radius: var(--nteu-radius, 12px);
  padding: 24px;
  margin: 0 0 20px;
  background: var(--nteu-gray-50, #f9fafb);
}

.nteu-checklist__legend {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nteu-purple, #260387);
  padding: 0 8px;
}

/* ── Checkbox items ── */
.nteu-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nteu-checklist__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nteu-checklist__item:first-of-type {
  padding-top: 0;
}

/* Hide native checkbox */
.nteu-checklist__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkbox */
.nteu-checklist__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-top: 1px;
  transition: all 0.2s ease;
  position: relative;
}

.nteu-checklist__checkbox:checked + .nteu-checklist__check {
  background: var(--nteu-purple, #260387);
  border-color: var(--nteu-purple, #260387);
}

.nteu-checklist__checkbox:checked + .nteu-checklist__check::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--nteu-white, #fff);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nteu-checklist__checkbox:focus-visible + .nteu-checklist__check {
  outline: 2px solid var(--nteu-purple-light, #5e5afe);
  outline-offset: 2px;
}

.nteu-checklist__label {
  font-size: 0.95rem;
  color: var(--nteu-gray-800, #1f2937);
  line-height: 1.5;
}

.nteu-checklist__hint {
  display: block;
  font-size: 0.82rem;
  color: var(--nteu-gray-600, #4b5563);
  margin-top: 4px;
  font-weight: 300;
}

/* ── Actions ── */
.nteu-checklist__actions {
  text-align: center;
  margin-top: 32px;
}

.nteu-checklist__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: var(--nteu-radius-lg, 30px);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--nteu-transition, 0.3s cubic-bezier(0.4, 0, 0.2, 1));
  background: var(--nteu-purple, #260387);
  color: var(--nteu-white, #fff);
}

.nteu-checklist__submit:hover:not(.nteu-checklist__submit--disabled) {
  background: var(--nteu-purple-dark, #1a025e);
  transform: translateY(-2px);
  box-shadow: var(--nteu-shadow-lg, 0 12px 40px rgba(38, 3, 135, 0.15));
  color: var(--nteu-white, #fff);
  text-decoration: none;
}

.nteu-checklist__submit--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.nteu-checklist__signin {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--nteu-gray-600, #4b5563);
}

.nteu-checklist__signin a {
  color: var(--nteu-purple, #260387);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 3, 135, 0.2);
  transition: border-color 0.2s ease;
}

.nteu-checklist__signin a:hover {
  border-bottom-color: var(--nteu-purple, #260387);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nteu-checklist {
    padding: 32px 16px;
  }

  .nteu-checklist__card {
    padding: 32px 24px;
  }

  .nteu-checklist__title {
    font-size: 1.4rem;
  }

  .nteu-checklist__group {
    padding: 16px;
  }
}

/* ── Registration-complete landing ── */
.nteu-regcomplete {
  text-align: center;
}

.nteu-regcomplete__icon {
  width: 88px;
  height: 88px;
  margin: 12px auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5e5afe 0%, #260387 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(38, 3, 135, 0.25);
}

.nteu-regcomplete .nteu-checklist__title {
  font-size: 2rem;
  margin: 0 auto 18px;
  max-width: 720px;
}

.nteu-regcomplete .nteu-checklist__lead {
  font-size: 1.05rem;
  margin: 0 auto 28px;
  max-width: 640px;
  color: #333;
}

.nteu-regcomplete__steps {
  max-width: 560px;
  margin: 0 auto 28px;
  padding: 20px 28px 20px 56px;
  text-align: left;
  background: #f5f3ff;
  border: 1px solid #d4ccff;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.nteu-regcomplete__steps li {
  margin: 4px 0;
}

.nteu-regcomplete__note {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 10px;
  color: #5d4037;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 640px) {
  .nteu-regcomplete .nteu-checklist__title {
    font-size: 1.5rem;
  }
  .nteu-regcomplete__steps {
    padding-left: 36px;
  }
}
