.enrollment {
  --form-ink: #1d2229;
  --form-muted: #565e69;
  --form-blue: #125de0;
  --form-danger: #a3273d;
  padding: clamp(36px, 5vw, 78px) 20px clamp(48px, 6vw, 90px);
  color: var(--form-ink);
  background: #f0f5fd;
}
.checkout-shell {
  width: min(100%, 600px);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid #e1e4e9;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 7px 30px rgb(22 33 47 / 3%);
}
.checkout-shell h1 {
  margin: 0;
  color: var(--form-ink);
  font-size: clamp(1.95rem, 3.15vw, 2.65rem);
  font-weight: 800;
  line-height: 1.48;
  text-align: center;
}
.enrollment-lead,
.enrollment-status p {
  max-width: 39ch;
  margin: 8px auto 0;
  color: var(--form-muted);
  font-size: 1.035rem;
  font-weight: 400;
  line-height: 1.85;
  text-align: center;
  text-wrap: pretty;
}
.enrollment .intake {
  display: grid;
  gap: 23px;
}
.enrollment-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}
.enrollment-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block-end: 12px;
  border-block-end: 2px solid #e0e4ea;
  color: #606a78;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}
.enrollment-progress li[aria-current='step'] {
  color: var(--form-blue);
  border-color: var(--form-blue);
  font-weight: 700;
}
.enrollment-progress .step-indicator {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  background: #eaf1fa;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.step-indicator svg {
  display: none;
}
.enrollment-progress [aria-current] .step-indicator {
  color: #fff;
  background: var(--form-blue);
}
.intake[data-current-step='2'] [data-progress='1'] {
  border-color: #b7ccef;
  color: var(--form-blue);
}
.intake[data-current-step='2'] [data-progress='1'] .step-indicator span {
  display: none;
}
.intake[data-current-step='2'] [data-progress='1'] .step-indicator svg {
  display: block;
}
.enrollment-status-icon::before {
  content: '';
  border: solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}
.enrollment fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.enrollment legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.enrollment .field + .field {
  margin-block-start: 18px;
}
.enrollment .field label {
  display: block;
  margin: 0 0 6px;
  color: var(--form-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}
.enrollment .field input,
.enrollment .field select {
  display: block;
  width: 100%;
  min-height: 53px;
  padding: 11px 15px;
  border: 1px solid #aeb8c6;
  border-radius: 12px;
  color: var(--form-ink);
  background: #fff;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.enrollment .field input::placeholder,
.enrollment .field select:invalid {
  color: #626d7b;
  opacity: 1;
}
.enrollment .field :is(input, select):focus {
  outline: none;
  border-color: #4f72aa;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #d8e4f8;
}
.enrollment .field :is(input, select)[aria-invalid='true'] {
  border-color: var(--form-danger);
  background: #fffbfc;
}
.enrollment-select {
  position: relative;
}
.enrollment-select::after {
  content: '';
  position: absolute;
  top: calc(50% - 6px);
  inset-inline-end: 18px;
  width: 8px;
  height: 8px;
  border: solid var(--form-muted);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.enrollment .enrollment-select select {
  appearance: none;
  padding-inline-end: 42px;
  cursor: pointer;
}
.checkout-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  margin-block: 0 19px;
  padding: 0 14px;
  background: #f4f6f9;
  border-radius: 12px;
}
.checkout-review p {
  min-inline-size: 0;
  color: var(--form-muted);
  font-size: 0.975rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.checkout-review bdi:first-child {
  color: var(--form-ink);
  font-weight: 600;
}
.checkout-review .edit-clinic {
  appearance: none;
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 5px;
  border: 0;
  background: transparent;
  color: #0c50c0;
  cursor: pointer;
  font-weight: 600;
}
.edit-clinic:hover,
.edit-clinic:focus-visible {
  color: #07377e;
}
.enrollment-options {
  margin-block-start: 20px;
}
.enrollment-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 44px;
  padding-block: 7px;
  color: #35404e;
  font-size: 1rem;
  line-height: 1.85;
}
.enrollment-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 4px 0 0;
  accent-color: var(--form-blue);
}
.enrollment-check small {
  color: var(--form-muted);
  white-space: nowrap;
  font-size: 0.9rem;
}
label.enrollment-check,
.enrollment-check label,
.enrollment-check input {
  cursor: pointer;
}
.enrollment-check input:focus-visible {
  outline: 1px solid #4f72aa;
  outline-offset: 3px;
}
.privacy-open {
  display: inline-block;
  max-width: 100%;
  padding: 3px 0;
  border: 0;
  color: #0c50c0;
  background: transparent;
  font: inherit;
  font-weight: 640;
  cursor: pointer;
}
.privacy-open:hover {
  color: #083a92;
}
.privacy-open:focus-visible,
.verification-resend:focus-visible,
.privacy-dialog button:focus-visible {
  border-radius: 5px;
  outline: 1px solid #4f72aa;
  outline-offset: 3px;
}
.enrollment-actions {
  margin-block-start: 25px;
}
.enrollment .enrollment-actions .button {
  display: flex;
  gap: 9px;
  width: 100%;
  min-height: 51px;
  padding: 9px 16px;
  border-radius: 13px;
  color: #fff;
  background: var(--form-blue);
  border-color: var(--form-blue);
  font-size: 1.075rem;
  font-weight: 700;
  box-shadow: none;
}
.enrollment .enrollment-actions [data-next]::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 0 1.8px 1.8px;
  transform: rotate(45deg);
}
.enrollment .enrollment-actions .primary:hover {
  background: #104fbe;
  border-color: #104fbe;
}
.enrollment .field-error {
  color: var(--form-danger);
  margin-block-start: 4px;
  font-size: 0.925rem;
}
.enrollment .notice {
  padding: 10px 14px;
  border: 1px solid #eac1c9;
  border-radius: 12px;
  color: #89233a;
  background: #fff4f6;
}
.enrollment-status {
  margin-block-start: 28px;
  padding-block-start: 24px;
  border-block-start: 1px solid #e6e9ed;
  text-align: center;
}
.enrollment-status h2 {
  font-size: 1.55rem;
  font-weight: 700;
}
.enrollment-status .button {
  margin-block-start: 20px;
}
.enrollment-status-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 13px;
  color: var(--form-blue);
  background: #eaf2ff;
  border-radius: 50%;
}
.enrollment-status-icon::before {
  width: 17px;
  height: 9px;
  border-width: 0 0 2.4px 2.4px;
}
@media (max-width: 560px) {
  .enrollment {
    background: #fff;
    padding: 29px max(20px, 5vw) max(40px, env(safe-area-inset-bottom));
  }
  .checkout-shell {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .enrollment-progress {
    margin-block-start: 23px;
  }
  .enrollment .intake {
    gap: 20px;
  }
}

.mobile-verification {
  margin-block-start: 12px;
}
.verification-card {
  padding: clamp(12px, 3vw, 19px);
  border: 1px solid #d9e5f6;
  border-radius: 18px;
  background: linear-gradient(150deg, #f5f9ff, #ebf3ff);
}
.verification-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin-block-end: 10px;
}
.verification-card-heading label {
  color: #173156;
  font-weight: 730;
  cursor: text;
}
.verification-card-heading p {
  color: #4d627f;
  font-size: 0.84rem;
}
.verification-card-heading bdi {
  color: #1f477d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.verification-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: stretch;
  gap: 9px;
}
.otp-control {
  position: relative;
  min-width: 0;
  border-radius: 11px;
}
.otp-control input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  caret-color: transparent;
  border-radius: 10px;
  font-size: 1rem;
}
.otp-control input:focus-visible {
  outline: none;
}
.otp-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 8px);
  pointer-events: none;
}
.otp-slot {
  display: grid;
  place-items: center;
  min-height: 47px;
  border: 1px solid #acc2e1;
  border-radius: 10px;
  color: #204874;
  background: #fff;
  font-size: 1.28rem;
  font-weight: 790;
  font-variant-numeric: tabular-nums;
}
.otp-slot > span,
.otp-slot::before {
  grid-area: 1 / 1;
}
.otp-slot:not(.is-filled)::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a0b4d0;
}
.otp-slot.is-filled {
  border-color: #729de3;
  background: #f9fcff;
}
.otp-slot.is-active {
  border-color: #4f72aa;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px #b5c8e8;
}
.otp-control:has([aria-invalid='true']) .otp-slot {
  border-color: #b65c6e;
  color: #a3273d;
  background: #fff7f8;
}
.verification-card .field-error {
  margin-block-start: 10px;
}
.verification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.verification-actions:has(.verification-feedback:not([hidden])) {
  margin-block-start: 6px;
}
.verification-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-block: 5px -6px;
}
.verification-resend {
  min-height: 44px;
  padding: 0 5px;
  border: 0;
  color: #1553ae;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 680;
  cursor: pointer;
}
.verification-resend:hover:not(:disabled) {
  color: #083a92;
}
.verification-resend:disabled,
.verification-timer {
  color: #576b87;
}
.verification-resend:disabled {
  cursor: default;
}
.verification-timer {
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.enrollment .verification-actions .button {
  min-height: 44px;
  padding-inline: 13px;
  border-radius: 11px;
  color: #104dba;
  background: #edf4ff;
  border-color: #d5e3fa;
  font-size: 0.94rem;
  box-shadow: none;
}
.enrollment .verification-actions .button:hover:not(:disabled) {
  color: #073985;
  background: #e2edff;
}
.enrollment .verification-entry .button {
  min-height: 47px;
  padding: 0 7px;
  border-radius: 11px;
  color: white;
  background: #1459c9;
  font-size: 0.99rem;
  font-weight: 680;
  white-space: nowrap;
  box-shadow: none;
}
.enrollment .verification-entry .button:hover:not(:disabled) {
  background: #0845a3;
}
.enrollment :is(.mobile-verification, .enrollment-actions) .button:disabled {
  cursor: default;
  opacity: 0.74;
}
.verification-feedback {
  color: #285779;
  line-height: 1.65;
  font-size: 0.93rem;
}
.verification-feedback.is-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding-inline: 10px;
  border-radius: 8px;
  color: #135640;
  background: #eaf7f0;
  font-weight: 650;
}
.verification-feedback.is-verified::before {
  content: '';
  width: 10px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-2px) rotate(-45deg);
}
@media (max-width: 480px) {
  .verification-entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .verification-entry .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .verification-card:not([hidden]) {
    animation: verification-enter 240ms ease-out both;
  }
  .otp-slot {
    transition:
      border-color 170ms ease,
      background-color 170ms ease,
      box-shadow 170ms ease;
  }
  .otp-slot.is-filled > span,
  .verification-feedback.is-verified {
    animation: verification-enter 200ms ease-out both;
  }
  .otp-control:has([aria-invalid='true']) .otp-slots {
    animation: verification-reject 220ms ease-in-out;
  }
  @keyframes verification-enter {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes verification-reject {
    25%,
    75% {
      transform: translateX(2px);
    }
    50% {
      transform: translateX(-2px);
    }
  }
}

html:has(.privacy-dialog[open]) {
  overflow: hidden;
}
.privacy-dialog {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: 84dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 22px;
  color: var(--form-ink);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 55px rgb(11 32 62 / 18%);
}
.privacy-dialog::backdrop {
  background: rgb(13 28 52 / 42%);
}
.privacy-dialog-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 83dvh;
}
.privacy-dialog-panel > :is(header, footer) {
  padding: 13px clamp(16px, 4vw, 28px);
}
.privacy-dialog-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e3e9f1;
}
.privacy-dialog-panel h2 {
  font-size: clamp(1.26rem, 4.7vw, 1.67rem);
  font-weight: 790;
  line-height: 1.55;
}
.privacy-dialog-panel h2:focus {
  outline: none;
}
.privacy-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #415577;
  background: #f1f5fa;
  font: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.privacy-close:hover {
  background: #e4edf8;
}
.privacy-dialog-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px clamp(16px, 4vw, 28px) 19px;
  color: #394b65;
  font-size: 0.98rem;
  line-height: 1.9;
}
.privacy-dialog-content h3 {
  margin: 14px 0 4px;
  color: #1d3558;
  font-size: 1.03rem;
  font-weight: 740;
}
.privacy-dialog-content p + p {
  margin-top: 8px;
}
.privacy-dialog-content a {
  color: #154eab;
}
.privacy-dialog-panel > footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #e3e9f1;
}
.privacy-dialog-panel > footer .button {
  min-width: 112px;
  min-height: 45px;
  border-radius: 12px;
}
@media (max-width: 520px) {
  .privacy-dialog {
    inset-block-start: auto;
    width: 100%;
    margin: 0;
    border-radius: 21px 21px 0 0;
  }
  .privacy-dialog-panel > footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .privacy-dialog-panel > footer .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .privacy-dialog[open] {
    animation: verification-enter 220ms ease-out both;
  }
}

.verification-feedback.is-duplicate {
  color: #815000;
  background: #fff2d9;
  border: 1px solid #f0d7a4;
  border-radius: 12px;
  padding: 10px 12px;
}
