.enrollment-page {
  background: #eef2f6;
}
.enrollment-header {
  position: relative;
}
.enrollment-header .brand-mark {
  padding: 3px;
  background: #fff !important;
  border: 1px solid var(--gold);
}
.enrollment-header .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.back-link {
  color: #315778;
  font-size: 14px;
  font-weight: 700;
}
.enrollment-main {
  width: min(960px, calc(100% - 40px));
  margin: 55px auto 80px;
}
.enrollment-intro {
  padding: 45px 50px;
  border-radius: 28px 28px 0 0;
  background: var(--navy);
  color: #fff;
}
.enrollment-intro h1 {
  margin: 18px 0 16px;
  font:
    700 clamp(36px, 5vw, 52px)/1.08 Georgia,
    serif;
}
.enrollment-intro > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}
.enrollment-note {
  margin-top: 25px;
  padding: 15px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}
.enrollment-note b {
  color: #fff;
}
.enrollment-form {
  padding: 50px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(8, 42, 80, 0.1);
}
.enrollment-form fieldset {
  margin: 0 0 42px;
  padding: 0 0 42px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.enrollment-form legend {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-bottom: 28px;
  color: var(--ink);
  font:
    700 24px Georgia,
    serif;
}
.enrollment-form legend span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5f0e3;
  color: #a77b17;
  font:
    700 14px Arial,
    sans-serif;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.form-grid label > span {
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
}
.form-grid .full {
  grid-column: 1/-1;
}
.enrollment-form input,
.enrollment-form select,
.enrollment-form textarea {
  width: 100%;
  border: 1px solid #c8d4df;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font:
    16px Arial,
    sans-serif;
  outline: none;
  transition: 0.2s;
}
.enrollment-form input,
.enrollment-form select {
  height: 50px;
  padding: 0 14px;
}
.enrollment-form textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}
.enrollment-form input:focus,
.enrollment-form select:focus,
.enrollment-form textarea:focus {
  border-color: #b38721;
  box-shadow: 0 0 0 3px rgba(215, 174, 74, 0.18);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px;
  border-radius: 12px;
  background: #f5f7f9;
  color: #526a80;
  font-size: 13px;
  line-height: 1.6;
}
.consent input {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.required-note,
.legal-form {
  color: #7a8998;
  font-size: 12px;
}
.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.submit-button:hover {
  background: #e1ba58;
}
.legal-form {
  margin: 16px auto 0;
  text-align: center;
  line-height: 1.5;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
.enrollment-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 28px max(5vw, 24px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: #647689;
  font-size: 13px;
}
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .enrollment-header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .back-link {
    width: 100%;
    padding-left: 56px;
  }
  .enrollment-main {
    width: min(100% - 24px, 960px);
    margin: 25px auto 50px;
  }
  .enrollment-intro,
  .enrollment-form {
    padding: 28px 22px;
  }
  .enrollment-intro {
    border-radius: 20px 20px 0 0;
  }
  .enrollment-form {
    border-radius: 0 0 20px 20px;
  }
  .enrollment-footer {
    flex-direction: column;
  }
}
