.msc-wrap {
  --msc-accent: #0074d9;
  --msc-accent-2: #00a9e8;
  --msc-dark: #101827;
  --msc-light: #f7f7f7;
  --msc-muted: #4b5563;
  --msc-border: #d8dce2;
  --msc-gradient: linear-gradient(135deg, var(--msc-accent) 0%, var(--msc-accent-2) 100%);
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  color: var(--msc-dark);
  font-family: inherit;
}

.msc-wrap *,
.msc-wrap *::before,
.msc-wrap *::after {
  box-sizing: border-box;
}

.msc-card {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--msc-border);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.msc-hero {
  padding: 54px 44px 46px;
  background: var(--msc-gradient);
  border-bottom: 0;
  color: #ffffff;
}

.msc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.msc-hero h2 {
  margin: 0;
  max-width: 840px;
  color: #ffffff;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.msc-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 21px;
  line-height: 1.48;
  font-weight: 500;
}

.msc-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(440px, 1.12fr);
  gap: 24px;
  padding: 38px 34px;
  background: #ffffff;
}

.msc-panel {
  background: #ffffff;
  border: 1px solid var(--msc-border);
  border-radius: 2px;
  padding: 28px;
  box-shadow: none;
}

.msc-panel h3,
.msc-lead-form h3 {
  margin: 0 0 10px;
  color: var(--msc-dark);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.msc-muted {
  margin: 0 0 22px;
  color: var(--msc-muted);
  font-size: 15px;
  line-height: 1.6;
}

.msc-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--msc-dark);
  font-size: 14px;
  font-weight: 850;
}

.msc-money-field {
  display: flex;
  align-items: center;
  min-height: 58px;
  background: #ffffff;
  border: 1px solid var(--msc-border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.msc-money-field:focus-within {
  border-color: var(--msc-accent);
  box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.18);
}

.msc-money-field span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  align-self: stretch;
  color: #ffffff;
  background: var(--msc-accent);
  font-size: 20px;
  font-weight: 900;
}

.msc-money-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 15px 16px;
  color: var(--msc-dark);
  background: transparent;
  font-size: 22px;
  font-weight: 850;
}

.msc-button,
.msc-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 14px 22px;
  border: 1px solid var(--msc-accent);
  border-radius: 5px;
  color: #ffffff !important;
  background: var(--msc-accent);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.msc-button:hover,
.msc-cta-link:hover,
.msc-button:focus-visible,
.msc-cta-link:focus-visible {
  background: #005fae;
  border-color: #005fae;
  transform: translateY(-1px);
  box-shadow: none;
}

.msc-note {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--msc-border);
  border-radius: 2px;
  color: var(--msc-muted);
  background: #f7f7f7;
  font-size: 13px;
  line-height: 1.5;
}

.msc-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 20px;
}

.msc-summary > div {
  padding: 20px;
  border-radius: 6px;
  background: var(--msc-gradient);
  color: #ffffff;
}

.msc-summary-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.msc-summary strong {
  display: block;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.msc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--msc-border);
  border-radius: 2px;
  background: #ffffff;
}

.msc-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  color: var(--msc-dark);
  font-size: 15px;
}

.msc-table th,
.msc-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--msc-border);
}

.msc-table th {
  color: var(--msc-dark);
  background: #f7f7f7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.msc-table tbody tr:last-child td {
  border-bottom: 0;
}

.msc-table strong {
  color: var(--msc-dark);
  font-weight: 900;
}

.msc-featured-row td {
  background: rgba(0, 169, 232, 0.11);
}

.msc-featured-row td:first-child {
  color: var(--msc-accent);
  font-weight: 900;
}

.msc-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
  border-radius: 2px;
  background: var(--msc-dark);
}

.msc-cta-box p {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.msc-cta-box .msc-cta-link {
  width: auto;
  min-width: 236px;
  margin-top: 0;
  color: var(--msc-dark) !important;
  background: #ffffff;
  border-color: #ffffff;
}

.msc-cta-box .msc-cta-link:hover,
.msc-cta-box .msc-cta-link:focus-visible {
  color: var(--msc-dark) !important;
  background: #f2f6fb;
  border-color: #f2f6fb;
}

.msc-lead-form {
  margin: 0 34px 38px;
  padding: 28px;
  border: 1px solid var(--msc-border);
  border-radius: 2px;
  background: #ffffff;
}

.msc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.msc-form-grid input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--msc-border);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--msc-dark);
  background: #ffffff;
  font-size: 15px;
}

.msc-form-grid input:focus {
  border-color: var(--msc-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 116, 217, 0.18);
}

@media (max-width: 900px) {
  .msc-grid {
    grid-template-columns: 1fr;
  }

  .msc-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .msc-wrap {
    margin: 0 auto;
  }

  .msc-hero {
    padding: 38px 22px 34px;
  }

  .msc-grid,
  .msc-panel,
  .msc-lead-form {
    padding: 20px;
  }

  .msc-grid {
    gap: 18px;
  }

  .msc-hero h2 {
    font-size: 36px;
  }

  .msc-hero p {
    font-size: 17px;
  }

  .msc-summary,
  .msc-form-grid {
    grid-template-columns: 1fr;
  }

  .msc-cta-box {
    align-items: stretch;
    flex-direction: column;
  }

  .msc-cta-box .msc-cta-link {
    width: 100%;
    min-width: 0;
  }

  .msc-money-field input {
    font-size: 20px;
  }
}

/* Mobile hardening: prevent horizontal overflow inside narrow WordPress content areas. */
.msc-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.msc-card,
.msc-hero,
.msc-grid,
.msc-panel,
.msc-lead-form,
.msc-table-wrap,
.msc-cta-box {
  max-width: 100%;
}

.msc-hero h2,
.msc-hero p,
.msc-panel h3,
.msc-muted,
.msc-note,
.msc-cta-box p {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 480px) {
  .msc-card {
    border-left: 0;
    border-right: 0;
  }

  .msc-hero {
    padding: 34px 20px 32px;
  }

  .msc-eyebrow {
    font-size: 13px;
    line-height: 1.35;
  }

  .msc-hero h2 {
    font-size: clamp(31px, 9.2vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .msc-hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .msc-grid {
    padding: 20px;
  }

  .msc-panel,
  .msc-lead-form {
    padding: 20px;
  }

  .msc-panel h3,
  .msc-lead-form h3 {
    font-size: 24px;
  }

  .msc-money-field {
    min-height: 56px;
  }

  .msc-money-field span {
    width: 48px;
    flex: 0 0 48px;
  }

  .msc-money-field input {
    min-width: 0;
    font-size: 20px;
    padding: 14px 12px;
  }

  .msc-summary > div {
    padding: 18px;
  }

  .msc-summary strong {
    font-size: 25px;
  }

  .msc-table-wrap {
    overflow-x: visible;
  }

  .msc-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 13px;
  }

  .msc-table th,
  .msc-table td {
    padding: 11px 8px;
    overflow-wrap: anywhere;
  }

  .msc-table th {
    font-size: 10px;
    line-height: 1.25;
  }

  .msc-button,
  .msc-cta-link {
    min-height: 52px;
    font-size: 15px;
  }
}

/* Final mobile width constraints for strict viewport fitting. */
.msc-wrap,
.msc-card,
.msc-hero,
.msc-grid,
.msc-panel,
.msc-lead-form,
.msc-table-wrap,
.msc-cta-box,
.msc-summary,
.msc-money-field {
  min-width: 0;
}

.msc-card {
  width: 100%;
}

.msc-hero h2,
.msc-hero p {
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 480px) {
  .msc-wrap {
    width: 100%;
    max-width: 100vw;
  }

  .msc-card {
    width: 100%;
    max-width: 100%;
  }

  .msc-hero h2 {
    font-size: clamp(28px, 8.2vw, 32px);
    line-height: 1.1;
  }

  .msc-hero p {
    font-size: 15.5px;
  }
}

@media (max-width: 640px) {
  .msc-wrap {
    width: 100%;
    max-width: 100vw;
  }

  .msc-card,
  .msc-hero,
  .msc-grid,
  .msc-panel,
  .msc-lead-form,
  .msc-results,
  .msc-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .msc-hero h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 7.8vw, 32px);
    line-height: 1.1;
    overflow-wrap: break-word;
  }

  .msc-hero p,
  .msc-muted {
    width: 100%;
    max-width: 100%;
    font-size: 15.5px;
    overflow-wrap: break-word;
  }

  .msc-table {
    width: 100%;
    min-width: 0;
  }
}

/* Explicit mobile text measures to prevent theme or container width conflicts from clipping copy. */
@media (max-width: 640px) {
  .msc-hero {
    padding-left: 18px;
    padding-right: 18px;
    overflow-x: hidden;
  }

  .msc-hero h2,
  .msc-hero p,
  .msc-eyebrow {
    display: block;
    max-width: calc(100vw - 36px) !important;
    width: calc(100vw - 36px) !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .msc-hero h2 {
    font-size: 30px;
  }

  .msc-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .msc-panel,
  .msc-lead-form {
    max-width: calc(100vw - 40px) !important;
    width: calc(100vw - 40px) !important;
  }
}

/* Conservative narrow-screen fallback for previewers and desktop browsers resized below mobile width. */
@media (max-width: 640px) {
  .msc-hero h2 {
    font-size: 25px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.025em;
  }

  .msc-hero p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .msc-eyebrow {
    font-size: 13px !important;
  }

  .msc-panel h3,
  .msc-lead-form h3 {
    font-size: 23px !important;
  }
}

/* Safe mobile card measure: keeps the calculator inside phone-width layouts even when a preview browser reports a wider CSS layout viewport. */
@media (max-width: 640px) {
  .msc-wrap {
    max-width: 390px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .msc-card {
    max-width: 390px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .msc-hero h2,
  .msc-hero p,
  .msc-eyebrow {
    width: 100% !important;
    max-width: 100% !important;
  }

  .msc-panel,
  .msc-lead-form {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Left-align mobile card in very narrow rendered previews to avoid crop artifacts. */
@media (max-width: 640px) {
  .msc-wrap,
  .msc-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Final mobile table correction: reduce side gutters and keep savings amounts on one line. */
@media (max-width: 640px) {
  .msc-wrap,
  .msc-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .msc-hero {
    padding: 30px 16px 28px !important;
  }

  .msc-grid {
    padding: 10px !important;
    gap: 10px !important;
  }

  .msc-panel,
  .msc-lead-form {
    padding: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .msc-results-panel {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .msc-summary {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .msc-summary > div {
    padding: 14px 12px !important;
  }

  .msc-summary strong {
    white-space: nowrap !important;
    font-size: 21px !important;
  }

  .msc-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  .msc-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    font-size: 12px !important;
  }

  .msc-table th,
  .msc-table td {
    padding: 9px 5px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    vertical-align: middle !important;
  }

  .msc-table th {
    font-size: 9px !important;
    line-height: 1.15 !important;
    letter-spacing: 0.025em !important;
  }

  .msc-table th:first-child,
  .msc-table td:first-child {
    width: 25% !important;
  }

  .msc-table th:nth-child(2),
  .msc-table td:nth-child(2),
  .msc-table th:nth-child(3),
  .msc-table td:nth-child(3) {
    width: 37.5% !important;
    white-space: nowrap !important;
  }

  .msc-table strong {
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  .msc-cta-box {
    padding: 14px !important;
  }
}

@media (max-width: 390px) {
  .msc-grid {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .msc-panel,
  .msc-lead-form {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .msc-results-panel {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .msc-table {
    font-size: 11.5px !important;
  }

  .msc-table th,
  .msc-table td {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}
