:root {
  --mhsm-navy: #09244d;
  --mhsm-blue: #0879d9;
  --mhsm-cyan: #17b9d4;
  --mhsm-gold: #e8ae3d;
  --mhsm-ink: #17243a;
  --mhsm-muted: #64748b;
  --mhsm-line: #dbe5f0;
  --mhsm-bg: #f3f7fb;
  --mhsm-success: #14835f;
  --mhsm-danger: #c33d52;
  --mhsm-radius: 22px;
  --mhsm-shadow: 0 22px 60px rgba(14, 42, 83, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mhsm-app {
  min-height: 100vh;
  margin: 0;
  color: var(--mhsm-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(23, 185, 212, .12), transparent 26rem),
    radial-gradient(circle at 92% 24%, rgba(8, 121, 217, .10), transparent 30rem),
    var(--mhsm-bg);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.mhsm-skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1100;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--mhsm-navy);
  transition: top .2s ease;
}

.mhsm-skip-link:focus { top: 12px; }

.mhsm-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(9, 36, 77, .08);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.mhsm-header__inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mhsm-logo {
  display: block;
  width: min(520px, 78vw);
  max-height: 78px;
  object-fit: contain;
}

.mhsm-program-band {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, var(--mhsm-navy), #0b4f92 60%, #067cad);
}

.mhsm-program-band__inner {
  position: relative;
  padding: 21px 18px;
  text-align: center;
}

.mhsm-program-band__inner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 6%;
  top: -105px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .035), 0 0 0 55px rgba(255, 255, 255, .025);
}

.mhsm-program-band h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
}

.mhsm-program-band p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.mhsm-step-wrap {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid var(--mhsm-line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
}

.mhsm-steps {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 4px 13px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.mhsm-step {
  flex: 1 0 122px;
  scroll-snap-align: center;
}

.mhsm-step__link {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--mhsm-muted);
  background: transparent;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.mhsm-step__link:not(.is-locked):hover {
  transform: translateY(-2px);
  border-color: #c9ddf1;
  background: #f4f9fe;
}

.mhsm-step__number {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd9e7;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mhsm-step__number svg { width: 15px; height: 15px; }

.mhsm-step__text {
  min-width: 0;
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.mhsm-step__link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--mhsm-blue), #0a5eb9);
  box-shadow: 0 10px 24px rgba(8, 121, 217, .22);
}

.mhsm-step__link.is-active .mhsm-step__number {
  color: var(--mhsm-blue);
  border-color: #fff;
}

.mhsm-step__link.is-complete { color: var(--mhsm-success); }

.mhsm-step__link.is-complete .mhsm-step__number {
  color: #fff;
  border-color: var(--mhsm-success);
  background: var(--mhsm-success);
}

.mhsm-step__link.is-locked { cursor: not-allowed; opacity: .56; }

.mhsm-progress-line { height: 3px; background: #e7edf4; }

.mhsm-progress-line > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, var(--mhsm-cyan), var(--mhsm-blue));
  transition: width .65s cubic-bezier(.2, .8, .2, 1);
}

.mhsm-main { padding: 42px 0 64px; }

.mhsm-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(9, 36, 77, .08);
  border-radius: var(--mhsm-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--mhsm-shadow);
  animation: mhsm-rise .55s ease both;
}

.mhsm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--mhsm-cyan), var(--mhsm-blue), var(--mhsm-gold));
}

.mhsm-card__head { padding: 30px 34px 18px; }
.mhsm-card__body { padding: 8px 34px 34px; }

.mhsm-section-kicker {
  margin: 0 0 8px;
  color: var(--mhsm-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mhsm-title-row { display: flex; align-items: flex-start; gap: 16px; }

.mhsm-title-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--mhsm-blue), var(--mhsm-cyan));
  box-shadow: 0 13px 27px rgba(8, 121, 217, .24);
}

.mhsm-title-icon svg { width: 27px; height: 27px; animation: mhsm-icon-float 3s ease-in-out infinite; }

.mhsm-card h2 {
  margin: 0;
  color: var(--mhsm-navy);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.mhsm-lead { max-width: 780px; margin: 8px 0 0; color: var(--mhsm-muted); }

.mhsm-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 16px;
  color: var(--mhsm-navy);
  font-size: 18px;
  font-weight: 700;
}

.mhsm-section-title::before {
  content: "";
  width: 4px;
  height: 21px;
  border-radius: 5px;
  background: var(--mhsm-cyan);
}

.form-label { margin-bottom: 7px; color: #24344e; font-size: 14px; font-weight: 650; }
.mhsm-required { color: var(--mhsm-danger); }

.form-control, .form-select {
  min-height: 50px;
  border-color: #cfdae7;
  border-radius: 12px;
  color: var(--mhsm-ink);
  background-color: #fbfdff;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea.form-control { min-height: 140px; resize: vertical; }

.form-control:focus, .form-select:focus {
  border-color: var(--mhsm-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(8, 121, 217, .11);
}

.form-control.is-valid, .form-select.is-valid { border-color: var(--mhsm-success); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--mhsm-danger); }
.form-text { color: #738197; }
.invalid-feedback { color: var(--mhsm-danger); font-size: 12px; font-weight: 600; }

.mhsm-radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mhsm-radio-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.mhsm-choice { position: relative; }
.mhsm-choice input { position: absolute; opacity: 0; pointer-events: none; }

.mhsm-choice label {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  color: #42516a;
  background: #fbfdff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: all .2s ease;
}

.mhsm-choice input:focus-visible + label { outline: 3px solid rgba(8, 121, 217, .18); }
.mhsm-choice input:checked + label { color: #fff; border-color: var(--mhsm-blue); background: var(--mhsm-blue); box-shadow: 0 9px 20px rgba(8, 121, 217, .17); }

.mhsm-note {
  padding: 14px 16px;
  border: 1px solid #cce4f4;
  border-left: 4px solid var(--mhsm-cyan);
  border-radius: 12px;
  color: #31506d;
  background: #f1faff;
  font-size: 14px;
}

.mhsm-otp-box {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed #a9cde8;
  border-radius: 14px;
  background: #f4faff;
}

.mhsm-otp-box.is-visible { display: block; animation: mhsm-rise .35s ease both; }

.mhsm-input-group .input-group-text {
  min-width: 72px;
  justify-content: center;
  border-color: #cfdae7;
  border-radius: 12px 0 0 12px;
  color: var(--mhsm-navy);
  background: #eef6fd;
  font-weight: 700;
}

.mhsm-input-group .form-control { border-radius: 0 12px 12px 0; }
.was-validated .mhsm-input-group:has(.form-control:invalid) + .invalid-feedback,
.mhsm-input-group:has(.form-control.is-invalid) + .invalid-feedback { display: block; }

.mhsm-dropzone {
  position: relative;
  min-height: 145px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 2px dashed #bdd0e2;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbfdff, #f4f9fe);
  text-align: center;
  cursor: pointer;
  transition: all .22s ease;
}

.mhsm-dropzone:hover, .mhsm-dropzone.is-dragging { border-color: var(--mhsm-blue); background: #edf7ff; transform: translateY(-2px); }
.mhsm-dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mhsm-dropzone svg { width: 35px; height: 35px; margin-bottom: 8px; color: var(--mhsm-blue); }
.mhsm-file-name { display: block; margin-top: 6px; color: var(--mhsm-success); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }

.mhsm-record {
  position: relative;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--mhsm-line);
  border-radius: 16px;
  background: #fbfdff;
}

.mhsm-record__number {
  position: absolute;
  right: 18px;
  top: 14px;
  color: #9aabc0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mhsm-counter { margin-top: 5px; color: #7b899d; font-size: 12px; text-align: right; }

.mhsm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #e5ecf3;
}

.mhsm-actions__right { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.mhsm-btn {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mhsm-btn:hover { transform: translateY(-2px); }
.mhsm-btn svg { width: 18px; height: 18px; }

.mhsm-btn-primary { color: #fff; border: 1px solid var(--mhsm-blue); background: linear-gradient(135deg, var(--mhsm-blue), #0758ac); box-shadow: 0 10px 22px rgba(8, 121, 217, .20); }
.mhsm-btn-primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(8, 121, 217, .27); }
.mhsm-btn-outline { color: var(--mhsm-navy); border: 1px solid #cbd8e6; background: #fff; }
.mhsm-btn-outline:hover { color: var(--mhsm-navy); border-color: #98b6d2; background: #f5faff; }
.mhsm-btn-success { color: #fff; border: 1px solid var(--mhsm-success); background: linear-gradient(135deg, var(--mhsm-success), #0a6b4b); box-shadow: 0 10px 22px rgba(20, 131, 95, .18); }
.mhsm-btn-success:hover { color: #fff; }
.mhsm-btn:disabled { cursor: not-allowed; opacity: .62; transform: none; }
.mhsm-btn.is-disabled,
.mhsm-btn[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(.35);
  box-shadow: none;
  transform: none;
}

.mhsm-success-panel {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #bee5d7;
  border-radius: 14px;
  color: #0d6549;
  background: #effbf7;
  font-weight: 650;
}

.mhsm-success-panel.is-visible { display: flex; animation: mhsm-rise .35s ease both; }
.mhsm-success-panel svg { flex: 0 0 25px; width: 25px; height: 25px; }

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

.mhsm-review-card {
  padding: 18px;
  border: 1px solid var(--mhsm-line);
  border-radius: 15px;
  background: #fbfdff;
}

.mhsm-review-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mhsm-review-card h3 { margin: 0; color: var(--mhsm-navy); font-size: 16px; font-weight: 700; }
.mhsm-review-card dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.mhsm-review-card dt { color: #718096; font-weight: 650; }
.mhsm-review-card dd { margin: 0; color: #263750; overflow-wrap: anywhere; }
.mhsm-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #0f6a4c; background: #e8f8f2; font-size: 11px; font-weight: 750; }
.mhsm-status svg { width: 12px; height: 12px; }
.mhsm-edit-link { color: var(--mhsm-blue); font-size: 12px; font-weight: 700; text-decoration: none; }

.mhsm-declaration-list { display: grid; gap: 12px; }
.mhsm-declaration-item { display: flex; gap: 11px; padding: 14px; border: 1px solid var(--mhsm-line); border-radius: 13px; background: #fbfdff; }
.mhsm-declaration-item input { flex: 0 0 19px; width: 19px; height: 19px; margin-top: 3px; accent-color: var(--mhsm-blue); }

.mhsm-payment-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 24px; }
.mhsm-payment-summary { position: sticky; top: 112px; padding: 24px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--mhsm-navy), #0b5598); box-shadow: 0 20px 45px rgba(9, 36, 77, .22); }
.mhsm-payment-summary__fee { margin: 14px 0 4px; font-size: 38px; font-weight: 750; letter-spacing: -.03em; }
.mhsm-payment-summary__line { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .8); font-size: 13px; }
.mhsm-secure-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: rgba(255, 255, 255, .75); font-size: 12px; }
.mhsm-secure-row svg { width: 17px; height: 17px; }

.mhsm-card-preview {
  position: relative;
  min-height: 178px;
  margin-bottom: 22px;
  padding: 24px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(125deg, #1e3159, #0d75b8 58%, #18a9c5);
  box-shadow: 0 18px 38px rgba(17, 57, 102, .22);
}
.mhsm-card-preview::before { content: ""; position: absolute; width: 190px; height: 190px; right: -60px; top: -90px; border: 1px solid rgba(255,255,255,.20); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.04); }
.mhsm-card-preview__chip { width: 42px; height: 31px; border-radius: 7px; background: linear-gradient(135deg, #f9dc8a, #c89631); }
.mhsm-card-preview__number { margin: 25px 0 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .11em; }
.mhsm-card-preview__meta { display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.75); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.mhsm-card-preview__meta strong { display: block; margin-top: 3px; color: #fff; font-size: 12px; letter-spacing: .04em; }

.mhsm-success-page { text-align: center; }
.mhsm-success-orbit { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin: 4px auto 24px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--mhsm-success), #25b37f); box-shadow: 0 18px 42px rgba(20, 131, 95, .25); }
.mhsm-success-orbit::before, .mhsm-success-orbit::after { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(20, 131, 95, .20); border-radius: 50%; animation: mhsm-pulse 2.2s ease-out infinite; }
.mhsm-success-orbit::after { animation-delay: 1.1s; }
.mhsm-success-orbit svg { width: 54px; height: 54px; }
.mhsm-reference { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 26px; padding: 10px 16px; border: 1px solid #cfe2db; border-radius: 999px; color: #155c47; background: #effaf6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 700; }
.mhsm-next-steps { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.mhsm-next-step { padding: 16px; border: 1px solid var(--mhsm-line); border-radius: 14px; background: #fbfdff; }
.mhsm-next-step strong { display: block; color: var(--mhsm-navy); font-size: 14px; }
.mhsm-next-step span { color: var(--mhsm-muted); font-size: 12px; }

.mhsm-toast-container { position: fixed; right: 18px; top: 18px; z-index: 1080; }
.mhsm-toast { min-width: min(360px, calc(100vw - 36px)); border: 0; border-radius: 14px; box-shadow: 0 18px 45px rgba(17, 37, 68, .18); }

.mhsm-blocked { padding: 24px; border: 1px solid #f0d59a; border-radius: 15px; color: #725015; background: #fffaf0; text-align: center; }
.mhsm-footer { padding: 0 16px 30px; color: #7c899c; font-size: 12px; text-align: center; }
.mhsm-hidden { display: none !important; }

@keyframes mhsm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mhsm-icon-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(3deg); } }
@keyframes mhsm-pulse { 0% { opacity: .75; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }

@media (max-width: 991.98px) {
  .mhsm-main { padding-top: 30px; }
  .mhsm-radio-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mhsm-payment-layout { grid-template-columns: 1fr; }
  .mhsm-payment-summary { position: static; order: -1; }
}

@media (max-width: 767.98px) {
  .mhsm-header__inner { min-height: 92px; }
  .mhsm-logo { max-height: 60px; }
  .mhsm-program-band h1 { font-size: 19px; }
  .mhsm-program-band p { font-size: 12px; }
  .mhsm-step { flex-basis: 106px; }
  .mhsm-step__link { min-height: 50px; padding: 6px 8px; }
  .mhsm-step__number { flex-basis: 27px; width: 27px; height: 27px; }
  .mhsm-card__head { padding: 25px 22px 14px; }
  .mhsm-card__body { padding: 7px 22px 26px; }
  .mhsm-card h2 { font-size: 23px; }
  .mhsm-title-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }
  .mhsm-review-grid { grid-template-columns: 1fr; }
  .mhsm-next-steps { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  body.mhsm-app { font-size: 15px; }
  .mhsm-main { padding: 22px 0 40px; }
  .mhsm-card { border-radius: 18px; }
  .mhsm-card__head { padding: 22px 17px 12px; }
  .mhsm-card__body { padding: 5px 17px 23px; }
  .mhsm-title-row { gap: 12px; }
  .mhsm-card h2 { font-size: 21px; }
  .mhsm-radio-grid, .mhsm-radio-grid--five { grid-template-columns: 1fr 1fr; }
  .mhsm-actions { align-items: stretch; flex-direction: column; }
  .mhsm-actions__right { display: grid; grid-template-columns: 1fr; }
  .mhsm-btn { width: 100%; }
  .mhsm-review-card dl { grid-template-columns: 96px 1fr; }
  .mhsm-record { padding: 19px 15px; }
  .mhsm-card-preview__number { font-size: 16px; letter-spacing: .07em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .mhsm-step-wrap, .mhsm-program-band, .mhsm-actions, .mhsm-footer, .mhsm-toast-container { display: none !important; }
  body.mhsm-app { background: #fff; }
  .mhsm-main { padding: 0; }
  .mhsm-card { border: 0; box-shadow: none; }
}
