.enrollment {
  background: radial-gradient(ellipse at 85% 10%, #d6b78048, transparent 50%),
    linear-gradient(115deg, #fffaf1, #f6ebd8 63%, #ebd9b8);
  color: #39281d;
  padding-block: clamp(46px, 4.7vw, 70px);
}
.enrollment-inner {
  --panel-padding: clamp(24px, 3.3vw, 44px);
  width: min(90%, 1000px);
  margin-inline: auto;
}
.enrollment-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.enrollment h2 {
  font: 400 clamp(38px, 4vw, 60px)/1.06 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.enrollment-heading p {
  color: #664b38;
  font-size: clamp(17px, 1.35vw, 20px);
}
.enrollment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-top: clamp(23px, 2.4vw, 35px);
  border-top: 2px solid #ad8752;
  box-shadow: 0 8px 28px -19px #674d2c70;
}
.enrollment h3 {
  font-size: clamp(23px, 1.7vw, 29px);
  line-height: 1.15;
  font-weight: 600;
}
.enrollment-included {
  display: flex;
  flex-direction: column;
  padding: var(--panel-padding);
  background: linear-gradient(110deg, #fffaf0, #f8eddb);
  box-shadow: inset 1px -1px 0 #d9c7aa;
}
.enrollment-list {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: space-between;
  gap: 12px clamp(18px, 2.5vw, 36px);
  margin: 20px 0 0;
  padding: 0 0 0 1.05em;
  list-style: disc outside;
}
.enrollment-list li {
  padding-inline-start: .12em;
  color: #47382d;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.35;
}
.enrollment-list li::marker { color: var(--brand-red, #c22829); font-size: .9em; }
.enrollment-payment {
  padding: var(--panel-padding);
  background: radial-gradient(ellipse at 100% 0%, #ad773c59, transparent 57%),
    linear-gradient(135deg, #513826, #32241c 62%, #291e18);
  color: #fff7e9;
}
.enrollment-prices { margin: 10px 0 0; }
.enrollment-deadline { margin: 12px 0 0; color: #f6d595; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.22; }
.enrollment-deadline strong { display: block; margin-top: 2px; font-size: clamp(29px, 2.6vw, 39px); font-weight: 650; }

.enrollment-option { padding: 14px 0 17px; }
.enrollment-option + .enrollment-option { border-top: 1px solid #9f784e; }
.enrollment-option dt { font-size: 19px; line-height: 1.4; }
.enrollment-option dd {
  margin: 5px 0 0;
  display: flex;
  align-items: baseline;
  gap: 5px 15px;
  flex-wrap: wrap;
}
.enrollment-option dd strong {
  font-size: clamp(37px, 3.65vw, 57px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.enrollment-former, .enrollment-total { color: #ead4b0; line-height: 1.25; }
.enrollment-former { font-size: 21px; }
.enrollment-former s { text-decoration-thickness: 1.5px; }
.enrollment-sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.enrollment-option .enrollment-action { margin: 10px 0 0; }
.enrollment-pay {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: 100%;
  padding: 10px 16px;
  background: var(--brand-red, #c22829);
  color: #fffaf0;
  font-size: 18px;
  text-decoration: none;
  font-weight: 550;
  text-align: center;
}
.enrollment-pay:hover, .enrollment-pay:active { background: #a01e1f; }
.enrollment-contact, .payment-help a { text-decoration: underline; text-underline-offset: .2em; }
.enrollment-contact { display: inline-block; padding-block: 8px; color: #ffead1; }
.enrollment-pay:focus-visible, .enrollment-contact:focus-visible { outline: 3px solid #ffddad; outline-offset: 2px; }
.payment-dialog {
  box-sizing: border-box; width: min(540px, calc(100% - 24px)); max-width: none;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 1px solid #b79a71; border-radius: 5px;
  overflow: auto; overscroll-behavior: contain; color: #39281d; background: #fffaf1;
}
.payment-dialog::backdrop { background: rgb(30 19 14 / .75); }
.payment-dialog-head, .payment-help {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 16px; margin: 0; padding: 10px clamp(12px, 3vw, 20px);
}
.payment-dialog-head { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid #cfbba0; background: #fffaf1; }
.payment-dialog .payment-dialog-head h3 { font-size: clamp(18px, 3vw, 23px); }
.payment-dialog button { min-height: 42px; padding: 6px 12px; font: inherit; color: #39281d; background: #fffaf1; border: 1px solid #997953; cursor: pointer; }
.payment-help { justify-content: flex-start; border-top: 1px solid #cfbba0; font-size: 16px; }
.payment-help a { display: inline-flex; align-items: center; min-height: 34px; color: #702420; }
.payment-dialog :is(a,button):focus-visible { outline: 3px solid #962629; outline-offset: 2px; }
.payment-status { margin: 0; padding: 16px 20px; font-size: 17px; }
.payment-status:empty { display: none; }
.payment-content iframe { display: block; width: 100%; min-width: 0; height: 1px; border: 0; background: white; }
.payment-content iframe[hidden] { display: none; }
@media (max-width: 760px) {
  .enrollment { padding-block: 35px; }
  .enrollment-inner { --panel-padding: clamp(15px, 5vw, 25px); width: min(calc(100% - 24px), 540px); }
  .enrollment h2 { font-size: clamp(32px, 7.5vw, 44px); }
  .enrollment h3 { font-size: 22px; }
  .enrollment-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .enrollment-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 19px; margin-top: 16px; }
  .enrollment-list li { font-size: 16px; }
  .enrollment-option { padding-block: 13px; }
  .enrollment-option dt, .enrollment-contact { font-size: 17px; }
}
