@charset "UTF-8";
:root {
  --ms-blue: #030A8C;
  --ms-mid-blue: #006FFF;
  --ms-cyan: #00AEEF;
  --ms-light-blue: #D6F5FF;
  --ms-text: #363636;
  --ms-text-on-light: rgba(3, 10, 140, 0.78);
  --ms-muted: #475569;
  --ms-gradient-primary: linear-gradient(135deg, #030A8C 0%, #006FFF 100%);
  --ms-gradient-hero: linear-gradient(135deg, #030A8C 0%, #006FFF 50%, #00AEEF 100%);
  --ms-gradient-line: linear-gradient(90deg, #030A8C 0%, #006FFF 50%, #00AEEF 100%);
  --ms-panel-radius: 48px;
  --ms-panel-tint: rgba(214, 245, 255, 0.45);
  --ms-radius-button: 10px;
  --ms-shadow-soft: 0 4px 24px -8px rgba(3, 10, 140, 0.12);
  --font-heading: "Raleway", sans-serif;
  --font-body: "Roboto", sans-serif;
  --mstext-2xs: clamp(0.75rem, 0.71rem + 0.18vw, 0.875rem);
  --mstext-xs: clamp(0.875rem, 0.86rem + 0.09vw, 0.9375rem);
  --mstext-s: clamp(0.9rem, 0.89rem + 0.05vw, 0.9375rem);
  --mstext-m: clamp(1.125rem, 1.09rem + 0.18vw, 1.25rem);
  --mstext-l: clamp(1.406rem, 1.33rem + 0.38vw, 1.669rem);
  --mstext-xl: clamp(1.756rem, 1.64rem + 0.66vw, 2.219rem);
  --mstext-2xl: clamp(2.2rem, 2.0rem + 1.09vw, 2.963rem);
  --space-2xs: clamp(0.51rem, 0.51rem + 0.01vw, 0.525rem);
  --space-xs: clamp(0.64rem, 0.62rem + 0.1vw, 0.71rem);
  --space-s: clamp(0.8rem, 0.76rem + 0.2vw, 0.94rem);
  --space-m: clamp(1rem, 0.93rem + 0.36vw, 1.25rem);
  --space-l: clamp(1.25rem, 1.13rem + 0.6vw, 1.67rem);
  --space-xl: clamp(1.56rem, 1.38rem + 0.94vw, 2.22rem);
  --space-2xl: clamp(1.96rem, 1.67rem + 1.44vw, 2.96rem);
  --ms-container: 1200px;
}

body {
  font-family: var(--font-body);
  color: var(--ms-text);
  overflow-x: clip;
  height: auto;
  min-height: 100%;
}

::-webkit-scrollbar-thumb {
  background: var(--ms-mid-blue);
}

.ms-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 42px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--ms-radius-button);
  background: #fff;
  color: var(--ms-blue) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--mstext-s);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(3, 10, 140, 0.12), 0 6px 16px -10px rgba(3, 10, 140, 0.5);
  transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.ms-btn-white:hover, .ms-btn-white:focus-visible {
  color: var(--ms-mid-blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 111, 255, 0.35), 0 10px 22px -10px rgba(3, 10, 140, 0.55);
}
.ms-btn-white .fa {
  font-size: 0.75em;
}

.ms-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid rgba(3, 10, 140, 0.08);
  border-image: var(--ms-gradient-line) 1;
  box-shadow: var(--ms-shadow-soft);
  font-family: var(--font-heading);
}

.ms-header__bar {
  max-width: var(--ms-container);
  margin: 0 auto;
  padding: var(--space-xs) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.ms-header__logo img {
  display: block;
  height: 52px;
  max-width: min(220px, 38vw);
  object-fit: contain;
}

.ms-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.ms-header__secure {
  align-items: center;
  gap: 0.45em;
  color: var(--ms-text-on-light);
  font-size: var(--mstext-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ms-header__secure .fa {
  color: var(--ms-mid-blue);
}

.ms-header__call {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--ms-blue);
  text-decoration: none;
}
.ms-header__call img {
  width: 36px;
  height: 36px;
  transition: transform 0.25s ease;
}
.ms-header__call:hover img {
  transform: rotate(-12deg) scale(1.05);
}

.ms-header__call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ms-header__call-label {
  font-size: var(--mstext-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ms-text-on-light);
}

.ms-header__call-number {
  font-size: var(--mstext-s);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .ms-header__logo img {
    height: 40px;
  }
  .ms-header__call-label {
    display: none;
  }
}
.ms-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-size: var(--mstext-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.ms-crumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.ms-crumbs a:hover {
  color: #fff;
}
.ms-crumbs [aria-current] {
  color: #fff;
}

.ms-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--ms-gradient-hero);
  border-bottom-right-radius: var(--ms-panel-radius);
}
.ms-hero::before, .ms-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.ms-hero::before {
  width: 520px;
  height: 520px;
  top: -260px;
  right: -140px;
}
.ms-hero::after {
  width: 320px;
  height: 320px;
  bottom: -200px;
  left: -120px;
}

.ms-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--ms-container);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-l);
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 992px) {
  .ms-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: var(--space-2xl);
  }
}

.ms-hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  min-width: 0;
}

.ms-hero__eyebrow {
  margin: var(--space-xs) 0 0;
  font-family: var(--font-heading);
  font-size: var(--mstext-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.ms-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--mstext-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.ms-hero__lead {
  margin: 0;
  max-width: 36em;
  font-family: var(--font-body);
  font-size: var(--mstext-m);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.ms-hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-l);
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 600;
}
.ms-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.ms-hero__points li::before {
  content: "";
  flex: none;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3.5 8.5l3 3 6-7'/%3e%3c/svg%3e") center/62% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ms-hero .apply-intro-stack {
  margin-top: var(--space-s);
  gap: var(--space-m);
}

.ms-hero .apply-intro-card {
  border-radius: 20px;
}

.ms-hero .accordion-button-apply p {
  font-family: var(--font-heading);
  font-size: var(--mstext-m);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .ms-hero__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
  }
  .ms-hero__intro {
    display: contents;
  }
  .ms-hero__calc {
    order: 1;
    margin-top: var(--space-m);
  }
  .ms-hero .apply-intro-stack {
    order: 2;
    margin-top: var(--space-m);
  }
}
.ms-hero__calc {
  min-width: 0;
}
@media (min-width: 992px) {
  .ms-hero__calc {
    position: sticky;
    top: 110px;
  }
}

.ms-hero--compact .ms-hero__inner {
  display: block;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}
.ms-hero--compact .ms-hero__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.apply-form-wrapper {
  counter-reset: ms-step;
  max-width: 820px;
  margin: var(--space-2xl) auto;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--ms-panel-tint);
  border-radius: var(--ms-panel-radius);
}
@media (max-width: 768px) {
  .apply-form-wrapper {
    margin: var(--space-xl) var(--space-s);
    padding: var(--space-xl) var(--space-s);
    border-radius: 24px;
  }
}

.ms-form-kicker {
  margin: 0 0 var(--space-xs);
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--mstext-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-mid-blue);
}

.apply-form-wrapper .apply-section-intro {
  font-family: var(--font-heading);
  font-size: var(--mstext-xl) !important;
  margin-bottom: var(--space-s) !important;
}

.ms-form-lead {
  margin: 0 auto var(--space-xl);
  max-width: 30em;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--mstext-m);
  font-weight: 600;
  color: rgba(3, 10, 140, 0.72);
}

.apply-form-wrapper .apply-form-section {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px -18px rgba(3, 10, 140, 0.35), 0 0 0 1px rgba(3, 10, 140, 0.05);
  margin-bottom: var(--space-xl);
}
.apply-form-wrapper .apply-form-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--ms-gradient-line);
}

.apply-form-wrapper .section-hero-b.apply-form-section {
  background: #fff;
}

.apply-form-wrapper .apply-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: var(--mstext-l) !important;
}
.apply-form-wrapper .apply-section-title::before {
  counter-increment: ms-step;
  content: counter(ms-step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--ms-gradient-primary);
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(0, 111, 255, 0.7);
}
.apply-form-wrapper .apply-section-title::after {
  display: none;
}

.apply-form-wrapper .apply-form-section .row:has(> .apply-section-title) {
  position: relative;
  margin-bottom: var(--space-l) !important;
  padding-bottom: var(--space-m);
}
.apply-form-wrapper .apply-form-section .row:has(> .apply-section-title)::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #006FFF 30%, #00AEEF 70%, transparent 100%);
  opacity: 0.55;
}

.apply-form-wrapper .ms-button-o {
  width: auto !important;
  min-width: 240px;
  background: var(--ms-gradient-primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px -10px rgba(0, 111, 255, 0.8) !important;
}
.apply-form-wrapper .ms-button-o:hover {
  box-shadow: 0 16px 30px -12px rgba(0, 111, 255, 0.85) !important;
}

.thankyou-page .thankyou-wrapper {
  padding: var(--space-2xl) var(--space-m);
}

.thankyou-page .thankyou-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}
.thankyou-page .thankyou-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--ms-gradient-line);
}

.thankyou-page .thankyou-btn {
  background: var(--ms-gradient-primary) !important;
  color: #fff !important;
}

.ms-footer {
  position: relative;
  margin-top: var(--space-2xl);
  background: #fff;
  color: var(--ms-blue);
  font-family: var(--font-body);
  border-top: 1px solid transparent;
  border-image: var(--ms-gradient-line) 1;
}
.ms-footer span {
  font-weight: inherit;
}
.ms-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ms-footer a:hover, .ms-footer a:focus-visible {
  color: var(--ms-mid-blue);
}

.ms-footer__inner {
  max-width: var(--ms-container);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-l) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ms-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
}

.ms-footer__logo img {
  display: block;
  height: 52px;
  width: auto;
}

.ms-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l) var(--space-xl);
}

.ms-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-size: var(--mstext-xs);
}
.ms-footer__contact img {
  width: 56px;
  height: 56px;
  transition: transform 0.25s ease;
}
.ms-footer__contact:hover img {
  transform: translateY(-3px);
}
.ms-footer__contact span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.ms-footer__contact strong {
  font-family: var(--font-heading);
  font-size: var(--mstext-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 991px) {
  .ms-footer__contact img {
    width: 40px;
    height: 40px;
  }
}

.ms-footer__nav {
  display: grid;
  gap: 0;
}
@media (min-width: 992px) {
  .ms-footer__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-l);
  }
}

.ms-footer__col {
  border-bottom: 1px solid rgba(3, 10, 140, 0.12);
}
.ms-footer__col summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 700;
}
.ms-footer__col summary::-webkit-details-marker {
  display: none;
}
.ms-footer__col summary::after {
  content: "+";
  font-size: 1.3em;
  font-weight: 400;
  line-height: 1;
}
.ms-footer__col[open] summary::after {
  content: "−";
}
.ms-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-s);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: var(--mstext-xs);
}
@media (min-width: 992px) {
  .ms-footer__col {
    border-bottom: 0;
  }
  .ms-footer__col summary {
    pointer-events: none;
    padding-top: 0;
    margin-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(3, 10, 140, 0.12);
  }
  .ms-footer__col summary::after {
    display: none;
  }
}

.ms-footer__lending {
  border-radius: 12px;
  background: var(--ms-gradient-hero);
  color: rgba(255, 255, 255, 0.92);
}
.ms-footer__lending summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 700;
  color: #fff;
}
.ms-footer__lending summary::-webkit-details-marker {
  display: none;
}
.ms-footer__lending summary::after {
  content: "+";
  font-size: 1.3em;
  font-weight: 400;
  line-height: 1;
}
.ms-footer__lending[open] summary::after {
  content: "−";
}
.ms-footer__lending p {
  margin: 0;
  padding: 0 var(--space-m) var(--space-m);
  font-size: var(--mstext-xs);
  line-height: 1.6;
}

.ms-footer__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-l) var(--space-2xl);
}
.ms-footer__trust img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.ms-footer__legal {
  position: relative;
  padding-top: var(--space-l);
  font-size: var(--mstext-2xs);
  color: var(--ms-text-on-light);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ms-footer__legal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--ms-gradient-line);
  opacity: 0.35;
}
.ms-footer__legal p {
  margin: 0;
  font-size: inherit;
}
.ms-footer__legal a {
  text-decoration: underline;
}

.ms-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.9rem 1.75rem;
  border: 0;
  border-radius: var(--ms-radius-button);
  background: var(--ms-gradient-primary);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0, 111, 255, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ms-btn-blue:hover, .ms-btn-blue:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(0, 111, 255, 0.9);
}

.ms-calc-card {
  max-width: 520px;
  margin-left: auto;
  padding: var(--space-xl);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(3, 10, 140, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25);
}
@media (max-width: 991px) {
  .ms-calc-card {
    margin: 0 auto;
    width: 100%;
  }
}

.ms-calc-card__title {
  margin: 0 0 var(--space-l);
  font-family: var(--font-heading);
  font-size: var(--mstext-l);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ms-blue);
}

.ms-herocalc {
  --hc-navy: var(--ms-blue);
  --hc-mid: var(--ms-mid-blue);
  --hc-muted: rgba(3, 10, 140, 0.72);
  --hc-line: rgba(3, 10, 140, 0.18);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  color: var(--hc-navy);
  text-align: left;
}

.ms-herocalc__inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-l);
}

.ms-herocalc__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.ms-herocalc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-s);
}

.ms-herocalc__label {
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hc-muted);
}

.ms-herocalc__amount-value {
  font-family: var(--font-heading);
  font-size: var(--mstext-l);
  font-weight: 700;
  line-height: 1.2;
  color: var(--hc-navy);
  font-variant-numeric: tabular-nums lining-nums;
}

.ms-herocalc__range {
  width: 100%;
  height: 2.4rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ms-herocalc__range:focus {
  outline: none;
}
.ms-herocalc__range:focus-visible {
  outline: 2px solid var(--hc-mid);
  outline-offset: 2px;
  border-radius: 9999px;
}
.ms-herocalc__range::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(var(--hc-mid), var(--hc-mid)) 0/var(--fill, 9.09%) 100% no-repeat, #e2e8f0;
}
.ms-herocalc__range::-moz-range-track {
  height: 0.5rem;
  border-radius: 9999px;
  background: #e2e8f0;
}
.ms-herocalc__range::-moz-range-progress {
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--hc-mid);
}
.ms-herocalc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5em;
  height: 1.5em;
  margin-top: calc((0.5rem - 1.5em) / 2);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ms-gradient-primary);
  box-shadow: 0 2px 8px rgba(3, 10, 140, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ms-herocalc__range::-moz-range-thumb {
  width: 1.5em;
  height: 1.5em;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ms-gradient-primary);
  box-shadow: 0 2px 8px rgba(3, 10, 140, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ms-herocalc__range:hover::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(3, 10, 140, 0.4);
}
.ms-herocalc__range:hover::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(3, 10, 140, 0.4);
}

.ms-herocalc__minmax {
  display: flex;
  justify-content: space-between;
  font-size: var(--mstext-2xs);
  line-height: 1.5;
  color: rgba(3, 10, 140, 0.65);
}

.ms-herocalc__terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs);
}

.ms-herocalc__term-btn {
  min-height: 44px;
  padding: 0 var(--space-2xs);
  border: 1px solid var(--hc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hc-navy);
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ms-herocalc__term-btn:hover {
  border-color: var(--hc-mid);
}
.ms-herocalc__term-btn:focus-visible {
  outline: 2px solid var(--hc-mid);
  outline-offset: 2px;
}
.ms-herocalc__term-btn[hidden] {
  display: none;
}
.ms-herocalc__term-btn[aria-pressed=true], .ms-herocalc__term-btn.is-selected {
  background: var(--hc-navy);
  border-color: var(--hc-navy);
  color: #fff;
}

.ms-herocalc__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-s) var(--space-m);
  border-radius: 12px;
  background: var(--ms-panel-tint);
}

.ms-herocalc__result-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ms-herocalc__result-label {
  font-family: var(--font-heading);
  font-size: var(--mstext-xs);
  font-weight: 600;
  line-height: 1.3;
  color: var(--hc-muted);
}

.ms-herocalc__figure {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 var(--space-2xs);
  transition: opacity 0.2s ease;
}

.ms-herocalc__weekly {
  font-family: var(--font-heading);
  font-size: var(--mstext-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(90deg, #FC8429, #FFBB33);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ms-herocalc__per {
  font-family: var(--font-heading);
  font-size: var(--mstext-s);
  font-weight: 600;
  color: var(--hc-navy);
}

.ms-herocalc.is-loading .ms-herocalc__figure {
  opacity: 0.45;
}
.ms-herocalc.is-loading .ms-herocalc__figure::after {
  content: "";
  align-self: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: var(--space-2xs);
  border: 2px solid #e2e8f0;
  border-top-color: var(--hc-mid);
  border-radius: 50%;
  animation: ms-calc-spin 0.8s linear infinite;
}

@keyframes ms-calc-spin {
  to {
    transform: rotate(360deg);
  }
}
.ms-herocalc__apply {
  flex-shrink: 0;
  white-space: nowrap;
}

.ms-herocalc__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--mstext-2xs);
  line-height: 1.55;
  color: rgba(3, 10, 140, 0.78);
}

@container (max-width: 480px) {
  .ms-herocalc__inputs {
    grid-template-columns: minmax(0, 1fr);
  }
  .ms-herocalc__result {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-s);
  }
  .ms-herocalc__apply {
    width: 100%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-herocalc__figure,
  .ms-herocalc__range::-webkit-slider-thumb,
  .ms-herocalc__range::-moz-range-thumb {
    transition: none;
  }
}
/* ---------- Site notice banner (ms-alert), same as the website ---------- */
.ms-alert {
  --ms-alert-bg1: #FFF6DC;
  --ms-alert-bg2: #FFE9AE;
  --ms-alert-edge1: #F59E0B;
  --ms-alert-edge2: #B45309;
  --ms-alert-icon: #B45309;
  --ms-alert-ring: rgba(180, 83, 9, 0.5);
  --ms-alert-border: rgba(180, 83, 9, 0.25);
  --ms-alert-text: #3B2A05;
  position: relative;
  width: 100%;
  padding: 14px var(--space-l);
  background: linear-gradient(90deg, var(--ms-alert-bg1) 0%, var(--ms-alert-bg2) 100%);
  border-bottom: 1px solid var(--ms-alert-border);
  overflow: hidden;
  max-height: 600px;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
}

.ms-alert.ms-alert--info {
  --ms-alert-bg1: #EEF3FF;
  --ms-alert-bg2: #DCE5FF;
  --ms-alert-edge1: #3B5BFD;
  --ms-alert-edge2: #030A8C;
  --ms-alert-icon: #030A8C;
  --ms-alert-ring: rgba(3, 10, 140, 0.45);
  --ms-alert-border: rgba(3, 10, 140, 0.2);
  --ms-alert-text: #1F2A44;
}

.ms-alert.ms-alert--success {
  --ms-alert-bg1: #ECFAF1;
  --ms-alert-bg2: #D4F3E0;
  --ms-alert-edge1: #22C55E;
  --ms-alert-edge2: #15803D;
  --ms-alert-icon: #15803D;
  --ms-alert-ring: rgba(21, 128, 61, 0.45);
  --ms-alert-border: rgba(21, 128, 61, 0.22);
  --ms-alert-text: #12391F;
}

.ms-alert::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ms-alert-edge1) 0%, var(--ms-alert-edge2) 100%);
}

.ms-alert > .ms-alert__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.ms-alert .ms-alert__icon {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ms-alert-icon);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
}

.ms-alert .ms-alert__icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--ms-alert-ring);
  animation: msalrt-pulse 2s ease-out infinite;
}

@keyframes msalrt-pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms-alert .ms-alert__icon::after {
    animation: none;
  }
  .ms-alert {
    transition: none;
  }
}
.ms-alert .ms-alert__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.ms-alert .ms-alert__title {
  margin: 0 0 2px;
  color: #030A8C;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}

.ms-alert .ms-alert__message,
.ms-alert .ms-alert__message p {
  margin: 0;
  color: var(--ms-alert-text);
  font-size: 16px;
  line-height: 1.5;
}

.ms-alert .ms-alert__message p + p {
  margin-top: 4px;
}

.ms-alert .ms-alert__message strong {
  font-weight: 700;
}

.ms-alert .ms-alert__message a {
  color: inherit;
  text-decoration: underline;
}

.ms-alert .ms-alert__button {
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #030A8C;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.ms-alert .ms-alert__button:hover,
.ms-alert .ms-alert__button:focus-visible {
  background: #1B23B5;
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .ms-alert {
    padding: 12px var(--space-m);
  }
  .ms-alert > .ms-alert__inner {
    gap: 12px;
  }
  .ms-alert .ms-alert__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 32px;
  }
  .ms-alert .ms-alert__title {
    font-size: 18px;
  }
  .ms-alert .ms-alert__message,
  .ms-alert .ms-alert__message p {
    font-size: 14.5px;
    line-height: 1.45;
  }
}
