/* ============================================================
   education-group.css — Грүпп онбординг + нэвтрэх
   eg- prefix. edu3 layout-той нийцсэн.
   ============================================================ */

.eg-body { background: #faf8f3; }


/* ─── HERO ─── */
.eg-hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--navy) 0%, #022954 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.eg-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(233,21,24,.18), transparent 70%);
  pointer-events: none;
}
.eg-hero > .container { position: relative; z-index: 1; }

.eg-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201,162,74,.4);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eg-hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: .005em;
  line-height: 1.2;
}
.eg-hero-desc {
  font-size: 1.02rem;
  color: rgba(255,255,255,.85);
  max-width: 760px;
  line-height: 1.65;
  margin: 0;
}
.eg-hero-desc strong { color: var(--gold-light); }


/* ─── STEPPER ─── */
.eg-stepper-wrap {
  background: #fff;
  border-bottom: 1px solid #ece6d4;
  padding: 26px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.eg-stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1000px;
}
.eg-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: opacity .2s;
}
.eg-step.is-locked { cursor: not-allowed; opacity: .55; }
.eg-step:not(.is-locked):hover .eg-step-num { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(3,31,62,.12); }
.eg-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: #ece6d4;
  z-index: 0;
}
.eg-step.done::after { background: var(--red); }

.eg-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ece6d4;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all .2s;
}
.eg-step.active .eg-step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.eg-step.done .eg-step-num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.eg-step-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .2s;
}
.eg-step.active .eg-step-label { color: var(--navy); }
.eg-step.done .eg-step-label { color: var(--red); }


/* ─── SECTION (wizard panel) ─── */
.eg-section {
  padding: 56px 0;
  background: #faf8f3;
  display: none;
}
.eg-section.is-active {
  display: block;
  animation: egFade .28s ease-out;
}
@keyframes egFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.eg-section-white { background: #fff; }


/* ─── STEP ACTIONS (prev/next bar at bottom of each panel) ─── */
.eg-step-actions {
  max-width: 900px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px dashed #d8d0bd;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.eg-step-actions .eg-step-pos {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  font-family: 'Courier New', monospace;
}
.eg-step-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.eg-step-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.eg-step-btn-primary {
  background: var(--red);
  color: #fff;
  justify-self: end;
}
.eg-step-btn-primary:hover:not(:disabled) { background: #c81e21; }
.eg-step-btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid #d8d0bd;
  justify-self: start;
}
.eg-step-btn-ghost:hover:not(:disabled) { background: #faf8f3; border-color: var(--navy); }
.eg-step-btn-finish {
  background: linear-gradient(135deg, var(--navy), #022954);
  color: #fff;
  justify-self: end;
}
.eg-step-btn-finish:hover { box-shadow: 0 10px 20px rgba(3,31,62,.18); transform: translateY(-1px); }


/* ─── ACK CHECKBOX (last step) ─── */
.eg-ack {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px dashed var(--red);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.eg-ack input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
  margin-top: 2px;
  flex-shrink: 0;
}
.eg-ack label {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.55;
  cursor: pointer;
}
.eg-ack label strong { color: var(--navy); }

.eg-section-head {
  max-width: 880px;
  margin: 0 auto 30px;
  text-align: center;
}
.eg-section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.eg-section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: .005em;
}
.eg-section-head p {
  font-size: .98rem;
  color: var(--text);
  margin: 0 auto;
  max-width: 680px;
  line-height: 1.65;
}


/* ─── INFO CARDS (Safety + Reading) ─── */
.eg-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.eg-card {
  background: #fff;
  border: 1px solid #ece6d4;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.eg-card > i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(233,21,24,.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.eg-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.eg-card-body p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.eg-card-body p strong { color: var(--navy); }


/* ─── DO / DON'T ─── */
.eg-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 30px auto 0;
}
.eg-do, .eg-dont {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  padding: 22px 24px;
}
.eg-do { border-top: 3px solid #2ea043; }
.eg-dont { border-top: 3px solid var(--red); }

.eg-do h4, .eg-dont h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.eg-do h4 { color: #1b6e2c; }
.eg-dont h4 { color: var(--red); }

.eg-do ul, .eg-dont ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .9rem;
  color: var(--text);
}
.eg-do li, .eg-dont li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
}
.eg-do li::before { content: '✓'; color: #2ea043; font-weight: 700; flex-shrink: 0; }
.eg-dont li::before { content: '✕'; color: var(--red); font-weight: 700; flex-shrink: 0; }


/* ─── READING LIST ─── */
.eg-reading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.eg-doc {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 6px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.eg-doc:hover {
  border-color: var(--navy);
  transform: translateX(2px);
  box-shadow: 0 10px 20px rgba(3,31,62,.06);
}
.eg-doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #022954);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.eg-doc-icon i { color: var(--gold-light); }
.eg-doc-body strong {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.eg-doc-body span {
  font-size: .82rem;
  color: var(--muted);
}
.eg-doc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}


/* ─── REQUIREMENTS (table) ─── */
.eg-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy, #031F3E);
  margin: 36px 0 16px;
}
.eg-subhead i { color: var(--red, #E91518); }
.eg-req-table {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  overflow: hidden;
  max-width: 900px;
  margin: 36px auto 0;
}
.eg-req-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid #f0eadc;
  align-items: center;
}
.eg-req-row:last-child { border-bottom: none; }
.eg-req-row:nth-child(even) { background: #faf8f3; }
.eg-req-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eg-req-label i { color: var(--red); width: 18px; }
.eg-req-value {
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
}
.eg-req-value strong { color: var(--red); }


/* ─── DOCUMENTS NEEDED ─── */
.eg-doclist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.eg-docneed {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 6px;
  padding: 16px 20px;
  align-items: flex-start;
}
.eg-docneed i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.eg-docneed strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.eg-docneed span {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.5;
}


/* ─── CTA BLOCK (final step) ─── */
.eg-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #022954 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  display: none;
  position: relative;
  overflow: hidden;
}
.eg-cta.is-active {
  display: block;
  animation: egFade .28s ease-out;
}
.eg-cta::before {
  content: '';
  position: absolute;
  top: -120px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,162,74,.18), transparent 70%);
  pointer-events: none;
}
.eg-cta::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(233,21,24,.16), transparent 70%);
  pointer-events: none;
}
.eg-cta > .container { position: relative; z-index: 1; }
.eg-cta-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46,160,67,.18);
  border: 2px solid #2ea043;
  color: #6fdd86;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}
.eg-cta-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(255,255,255,.7);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  text-transform: uppercase;
  transition: color .2s;
}
.eg-cta-back:hover { color: var(--gold-light); }
.eg-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.eg-cta h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: .005em;
}
.eg-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin: 0 0 28px;
}
.eg-cta-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.eg-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 30px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.eg-btn-primary:hover { background: #c81e21; }
.eg-btn-primary i { color: #fff; }
.eg-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: 13px 28px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.eg-btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.eg-btn-outline i { color: var(--gold-light); }


/* ─── LOGIN PAGE STYLES ─── */
.eg-login {
  padding: 60px 0 80px;
  background: #faf8f3;
}
.eg-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.eg-login-card {
  background: #fff;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  padding: 32px 34px;
}
.eg-login-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: .005em;
}
.eg-login-sub {
  font-size: .88rem;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

.eg-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eg-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eg-form label > span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eg-form input,
.eg-form select,
.eg-form textarea {
  background: #faf8f3;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: all .2s;
}
.eg-form input:focus,
.eg-form select:focus,
.eg-form textarea:focus {
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(3,31,62,.08);
}
.eg-form textarea { resize: vertical; min-height: 80px; font-family: inherit; }

.eg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.eg-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin: 4px 0 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.eg-form-options label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.eg-form-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}
.eg-form-options a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.eg-form button[type="submit"] {
  margin-top: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s;
}
.eg-form button[type="submit"]:hover { background: #c81e21; }
.eg-form button[type="submit"] i { color: #fff; }

.eg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eg-divider::before,
.eg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ece6d4;
}

.eg-help {
  background: #faf8f3;
  border: 1px solid #ece6d4;
  border-radius: 8px;
  padding: 22px 24px;
}
.eg-help h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.eg-help ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eg-help li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  color: var(--text);
}
.eg-help li i {
  color: var(--red);
  margin-top: 4px;
  flex-shrink: 0;
}
.eg-help-contact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ece6d4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eg-help-contact a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eg-help-contact a i { color: var(--red); }


/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .eg-stepper-wrap { padding: 18px 0; }
  .eg-stepper { gap: 0; padding: 0 8px; }
  .eg-step-label { display: none; }
  .eg-step-num { width: 32px; height: 32px; font-size: .82rem; }
  .eg-step:not(:last-child)::after { top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px); }
  .eg-section { padding: 40px 0; }
  .eg-cards { grid-template-columns: 1fr; }
  .eg-do-dont { grid-template-columns: 1fr; }
  .eg-doclist { grid-template-columns: 1fr; }
  .eg-req-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .eg-doc { grid-template-columns: 40px 1fr; }
  .eg-doc-action { grid-column: 2; }
  .eg-login-grid { grid-template-columns: 1fr; }
  .eg-form-row { grid-template-columns: 1fr; }
  .eg-login-card { padding: 24px 22px; }
  .eg-step-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .eg-step-actions .eg-step-pos {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 6px;
  }
  .eg-step-btn { padding: 12px 18px; font-size: .76rem; }
}

/* Грүпп нэвтрэх/бүртгүүлэх — reCAPTCHA, алдаа, амжилтын мессеж */
.eg-recaptcha { margin: 4px 0 2px; }
.eg-form-error {
  display: flex; align-items: center; gap: 8px;
  background: #fdecec; color: #b3261e; border: 1px solid #f4c7c3;
  border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin-bottom: 14px;
}
.eg-flash {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: 10px; padding: 14px 18px; font-size: .95rem; line-height: 1.5;
  max-width: 980px; margin: 0 auto 22px;
}
.eg-flash i { font-size: 1.2rem; margin-top: 1px; }
.eg-flash-ok { background: #e7f6ec; color: #1b5e34; border: 1px solid #b6e0c3; }
.eg-flash-ok i { color: #2e9e57; }
