/* ============================================================
   CEPD London — Enrolment Page Styles
   ============================================================ */

/* ── Enrolment Page Layout ────────────────────────────────── */
.enrol-page-section {
  background: var(--off-white);
  padding-top: 60px;
  padding-bottom: 80px;
}

.enrol-page-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.enrol-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
}

.sidebar-card h4 {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-grey);
}

/* Guide Steps */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-grey);
  opacity: 0.45;
  transition: var(--transition);
}

.step:last-child { border-bottom: none; }

.step.active,
.step.completed {
  opacity: 1;
}

.step.completed .step-num {
  background: var(--teal-mid);
  color: var(--white);
}

.step.active .step-num {
  background: var(--navy);
  color: var(--white);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}

.step div strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.step div p {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* Sidebar Contact */
.sidebar-contact p {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 12px;
  line-height: 1.6;
}

.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.sidebar-contact-item a {
  color: var(--teal-mid);
  transition: var(--transition);
}
.sidebar-contact-item a:hover { color: var(--teal-dark); }

.sidebar-note {
  font-size: 0.72rem !important;
  color: var(--text-light) !important;
  margin-top: 8px !important;
}

/* Intake Table */
.intake-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.intake-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--text-mid);
}

.intake-table tr:last-child td { border-bottom: none; }

.intake-open {
  background: #e8f5e9;
  color: #2e7d32;
  font-family: var(--font-caps);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}

.intake-soon {
  background: #fff8e1;
  color: #f57f17;
  font-family: var(--font-caps);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar-wrap {
  height: 5px;
  background: var(--light-grey);
  border-radius: 50px;
  margin-bottom: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal-light));
  border-radius: 50px;
  transition: width 0.4s ease;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ── Form Fieldsets ───────────────────────────────────────── */
.form-step {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-step:not(.active) * {
  pointer-events: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-grey);
  width: 100%;
}

.step-badge {
  width: 36px;
  height: 36px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-caps);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Step Navigation ──────────────────────────────────────── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--light-grey);
}

.btn-outline-dark {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-caps);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--text-mid);
  border: 2px solid var(--light-grey);
  transition: var(--transition);
}

.btn-outline-dark:hover {
  border-color: var(--text-mid);
  color: var(--text-dark);
}

/* ── Field Hints ──────────────────────────────────────────── */
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.5;
}

/* ── Radio Group ──────────────────────────────────────────── */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-mid);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--teal-mid);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-group input {
  pointer-events: auto;
}

/* ── Declaration Box ──────────────────────────────────────── */
.declaration-box {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.declaration-box h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.declaration-box > p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.declaration-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.declaration-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── Submit Section ───────────────────────────────────────── */
.enrol-submit {
  padding: 16px 48px;
  font-size: 0.9rem;
  background: var(--teal-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-caps);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.enrol-submit:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Enrolment Success ────────────────────────────────────── */
.enrol-success {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  text-align: center;
}

.enrol-success .success-icon {
  width: 80px;
  height: 80px;
  background: var(--teal-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--white);
}

.enrol-success h2 {
  color: var(--navy);
  margin-bottom: 14px;
}

.enrol-success p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 10px;
}

/* ── Validation Styles ────────────────────────────────────── */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.form-group .error-msg {
  display: block;
  font-size: 0.75rem;
  color: #e53935;
  margin-top: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .enrol-page-grid {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .enrol-page-grid {
    grid-template-columns: 1fr;
  }
  .enrol-sidebar {
    position: static;
    order: 2;
  }
  .enrol-form-main {
    order: 1;
  }
  .form-step {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .form-step { padding: 20px 16px; }
  .step-nav { flex-direction: column; gap: 12px; }
  .step-nav button { width: 100%; }
}
