.online-private-hero {
  min-height: 0;
}

.online-private-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.online-private-hero-copy {
  min-width: 0;
}

.online-private-hero .hero-copy {
  max-width: 760px;
  margin-bottom: 0;
}

.online-private-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem 1.4rem;
  padding: 1.4rem;
  border-left: 4px solid #c79a3b;
  background: rgba(255, 255, 255, .92);
  color: #172b3d;
}

.online-private-summary span { color: #667586; }
.online-private-summary strong { text-align: right; }

.online-enrollment-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.online-form-heading {
  align-items: end;
}

.online-enrollment-path {
  margin-top: 2rem;
}

.online-enrollment-path .path-switcher-button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
}

.online-enrollment-path .path-switcher-button[aria-pressed="true"] small {
  color: rgba(255, 255, 255, .78);
}

.online-private-form {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid #d6dee4;
  border-radius: 8px;
  background: #f5f7f8;
  box-shadow: 0 22px 58px rgba(24, 43, 61, .12);
}

.online-form-intro {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid #d6dee4;
  background: #fff;
}

.online-form-intro h3 {
  max-width: 760px;
  margin-bottom: .55rem;
  color: #052f56;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.online-form-intro p:last-child {
  margin-bottom: 0;
  color: #667586;
}

.online-form-section,
.online-review {
  margin: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #fff;
}

.online-private-form label:not(.checkbox-row, .online-product-select) {
  display: block;
  min-width: 0;
}

.online-private-form label:not(.checkbox-row, .online-product-select) > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--enrollment-ink);
  font-size: 13px;
  font-weight: 850;
}

.online-private-form label:not(.checkbox-row, .online-product-select):has(> input[required]) > span:first-child::after,
.online-private-form label:not(.checkbox-row, .online-product-select):has(> select[required]) > span:first-child::after {
  content: " · Required";
  color: var(--crimson);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.online-private-form input:not([type="checkbox"]),
.online-private-form select,
.online-private-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cbd5dd;
  border-radius: 7px;
  color: var(--blue-ink);
  background: #fbfbfa;
  font: inherit;
  font-size: 15px;
}

.online-private-form input:not([type="checkbox"]):focus,
.online-private-form select:focus,
.online-private-form textarea:focus {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 5px var(--blue);
}

.online-private-form label:not(.checkbox-row) > small {
  display: block;
  margin-top: 7px;
  color: #667783;
  font-size: 12px;
  line-height: 1.45;
}

.online-private-form .checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.online-private-form .checkbox-row input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--crimson);
}

.online-private-form .checkbox-row span {
  min-width: 0;
  color: #445b6d;
  font-size: 13px;
  line-height: 1.55;
}

.online-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.online-product {
  padding: 1.2rem;
  border: 1px solid #d5dde4;
  border-top: 4px solid #052f56;
  background: #f8fafc;
}

.online-product:has(input[type="checkbox"]:checked) {
  border-top-color: #ae1931;
  box-shadow: 0 12px 30px rgba(20, 41, 60, .08);
}

.online-product-select {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.online-product-select input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .2rem;
}

.online-product-select span,
.online-product-select small {
  display: block;
}

.online-product-select strong {
  color: #052f56;
  font-size: 1.05rem;
}

.online-product-select small {
  margin-top: .35rem;
  color: #667586;
  line-height: 1.5;
}

.online-product-price {
  margin: 1rem 0;
  color: #ae1931;
  font-size: 1.5rem;
  font-weight: 800;
}

.online-product-price span {
  color: #667586;
  font-size: .9rem;
  font-weight: 600;
}

.online-product-fields {
  display: grid;
  gap: .8rem;
  padding-top: 1rem;
  border-top: 1px solid #dfe4e8;
}

.online-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: #052f56;
  color: #fff;
}

.online-total strong { font-size: 1.7rem; }
.online-payment-field { max-width: 30rem; }

.online-agreement-text {
  max-height: 32rem;
  overflow: auto;
  padding: 1.2rem;
  border: 1px solid #d5dde4;
  background: #fbfaf7;
  color: #263c50;
  line-height: 1.65;
  white-space: pre-wrap;
}

.online-agreement-text:empty::before {
  content: "The agreement is not available yet.";
  color: #ae1931;
}

.agreement-confirmations {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.signature-field {
  display: grid;
  gap: .4rem;
  max-width: 38rem;
  margin-top: 1.2rem;
}

.online-review dd { white-space: pre-line; }

.online-submit-actions {
  display: grid;
  gap: .8rem;
  justify-items: start;
  padding: 0 1rem 1rem;
}

@media (max-width: 900px) {
  .online-private-hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .online-private-summary {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .online-product-grid { grid-template-columns: 1fr; }
  .online-private-summary { grid-template-columns: 1fr; }
  .online-private-summary strong { text-align: left; }
  .online-total { align-items: flex-start; flex-direction: column; }

  .online-form-heading {
    align-items: start;
  }

  .online-form-section,
  .online-review {
    margin: .65rem;
  }
}
