.module-page {
  display: grid;
  gap: 22px;
}

.module-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.module-hero h3 {
  margin: 7px 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
}

.module-hero p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.module-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 12px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.form-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  border: 1px solid #d8e4f7;
  border-radius: 16px;
  background: #f4f8ff;
  color: #344054;
}

.form-notice strong {
  display: block;
  margin-bottom: 3px;
}

.form-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-notice.read-only {
  border-color: #f4d6a4;
  background: #fff8eb;
}

.registration-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.registration-card-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.registration-card-header h3 {
  margin: 5px 0 0;
  font-size: 1.15rem;
}

.registration-form {
  padding: 24px;
}

.form-section + .form-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-section-title {
  margin-bottom: 16px;
}

.form-section-title strong {
  display: block;
  font-size: 0.98rem;
}

.form-section-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

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

.form-field label {
  font-size: 0.84rem;
  font-weight: 750;
  color: #344054;
}

.required-mark {
  color: var(--danger);
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #8aa8dc;
  box-shadow: 0 0 0 4px rgba(46, 103, 209, 0.10);
}

.form-field input:disabled,
.form-field select:disabled {
  background: #f2f4f7;
  color: #98a2b3;
  cursor: not-allowed;
}

.field-help {
  margin: 0;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.school-source-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
}

.school-source-state strong {
  color: #475467;
}

.school-source-state.loading {
  background: #f4f8ff;
}

.school-source-state.error {
  background: #fff1f0;
  color: #b42318;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-action-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 13px;
  padding: 13px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.form-submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .module-hero {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .registration-form,
  .registration-card-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-submit {
    width: 100%;
  }
}
