.enrollment-page {
  min-height:calc(100vh - 56px);
  padding:32px 0 64px;
}

.enrollment-page>.container {
  max-width: 1200px;
}

.back-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--body);
  margin-bottom:36px;
  transition:color .18s ease;
}

.back-link:hover {
  color:var(--accent);
}

.enrollment-intro {
  margin-bottom:36px;
}

.enrollment-status {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#0c7f36;
  font-weight:600;
  margin-bottom:14px;
}

.status-dot {
  position:relative;
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#22c55e;
}

.status-dot::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:#22c55e;
  animation:status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    transform:scale(1);
    opacity:.5;
  }

  70%,100% {
    transform:scale(2.4);
    opacity:0;
  }

}

.enrollment-intro h1 {
  margin-bottom:10px;
}


.flow-shell {
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--white);
}

.flow-progress {
  min-height:54px;
  padding:0 18px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  border-bottom:1px solid var(--border);
}

.progress-track {
  height:3px;
  background:var(--surface);
  overflow:hidden;
  border-radius:999px;
}

.progress-bar {
  display:block;
  width:25%;
  height:100%;
  background:var(--accent);
  transition:width .28s ease;
}

.progress-copy {
  color:var(--muted);
  white-space:nowrap;
}

form {
  padding:28px;
}

.form-step {
  display:none;
  animation:step-in .24s ease;
}

.form-step.is-active {
  display:block;
}

section .form-step.is-active {
    padding: 0;
}

@keyframes step-in {
  from {
    opacity:0;
    transform:translateY(5px);
  }

  to {
    opacity:1;
    transform:translateY(0);
  }

}

.step-heading {
  margin-bottom:26px;
}

.step-kicker {
  display:block;
  color:var(--accent);
  font-weight:600;
  margin-bottom:5px;
}

.step-heading h2 {
  margin-bottom:6px;
}

.step-heading p {
  margin-bottom:0;
}

.choice-grid {
  display:grid;
  gap:8px;
}

.choice-grid-4,
.choice-grid-2 {
  grid-template-columns:repeat(3,1fr);
}

.choice-card {
  position:relative;
  cursor:pointer;
}

.choice-card input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.choice-card-content {
  min-height:120px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:var(--body);
  transition:border-color .18s ease,background-color .18s ease,transform .18s ease;
}

.choice-card:hover .choice-card-content {
  border-color:#cfd4da;
  background:var(--surface);
  transform:translateY(-1px);
}

.choice-card input:checked+.choice-card-content {
  border-color:var(--accent);
  background:#f3f7fc;
  color: var(--accent);
}

.choice-card-content strong {
  color:var(--title);
  font-weight:600;
}

.choice-card-rich .choice-card-content {
  justify-content:flex-start;
  align-items: start;
  height: 100%;
}

.choice-card-rich i {
  color:var(--accent);
  font-size:18px;
  margin-bottom:32px;
}

.choice-card-rich strong {
  margin-bottom:3px;
}

.student-classes {
  display:grid;
  gap:12px;
}

.student-class-card {
  padding-bottom:16px;
  padding-top: 16px;
}

.student-class-card h3 {
  margin-bottom:12px;
}

.class-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
}

.class-option {
  position:relative;
  cursor:pointer;
}

.class-option input {
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.class-option span {
  min-height:56px;
  padding:6px 8px;
  display:grid;
  place-items:center;
  text-align:center;
  border:1px solid var(--border);
  border-radius:6px;
  color:var(--body);
  transition:border-color .18s ease,background-color .18s ease,color .18s ease;
}

.class-option:hover span {
  background:var(--surface);
}

.class-option input:checked+span {
  border-color:var(--accent);
  color:var(--accent);
  background:#f3f7fc;
  font-weight:600;
}

.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.field {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field>span {
  color:var(--title);
  font-weight:600;
}

.field small {
  color:var(--muted);
  font-weight:400;
}

.field input {
  width:100%;
  min-height:42px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:6px;
  background:var(--white);
  color:var(--title);
  outline:none;
  transition:border-color .18s ease;
}

.field input:focus {
  border-color:var(--accent);
}

.field-full {
  grid-column:1/-1;
}

.summary-card {
  margin-top:22px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
}

.summary-card:empty {
  display:none;
}

.summary-card h3 {
  margin-bottom:10px;
}

.summary-list {
  display:grid;
  gap:8px;
}

.summary-row {
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.summary-row span {
  color:var(--muted);
}

.summary-row strong {
  color:var(--title);
  text-align:right;
  font-weight:600;
}

.form-message {
  min-height:20px;
  margin-top:18px;
  color:#b42318;
}

.flow-actions {
  margin-top:0;
  padding-top:20px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.is-hidden {
  display:none!important;
}

.privacy-note {
  margin:14px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:var(--muted);
  text-align:center;
}

@media(max-width:720px) {
  .enrollment-page {
    padding:52px 0 48px;
  }

  .enrollment-page>.container {
    width:min(calc(100% - 24px),680px);
  }

  form {
    padding:20px;
  }

  .choice-grid-2,
  .choice-grid-4,
  .field-grid {
    grid-template-columns:1fr;
  }

  .field-full {
    grid-column:auto;
  }

  .class-options {
    grid-template-columns:repeat(2,1fr);
  }

  .flow-progress {
    padding-inline:14px;
  }

}

@media(max-width:420px) {
  .class-options {
    grid-template-columns:1fr;
  }

  .flow-actions {
    align-items:stretch;
  }

  .flow-actions .button {
    flex:1;
  }

}

@media(prefers-reduced-motion:reduce) {
  .status-dot::after {
    animation:none;
  }

  .form-step {
    animation:none;
  }

}
