/* ============================================
   MortgageLife Borrowing Calculator
   Shared base + 3 layout variants
   ============================================ */

@font-face {
    font-family: 'Universal Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://www.mortgagelife.co.nz/wp-content/uploads/2024/08/Universal-Sans-Display-350.woff2') format('woff2');
}

@font-face {
    font-family: 'Universal Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://www.mortgagelife.co.nz/wp-content/uploads/2024/08/Universal-Sans-Display-550.woff2') format('woff2');
}

:root {
    --mlc-navy: #081B44;
    --mlc-navy-light: #0d2a5c;
    --mlc-slate: #69727D;
    --mlc-blue: #3F7DFF;
    --mlc-bg: #FFFFFF;
    --mlc-bg-off: #F7F8FA;
    --mlc-border: #E2E4E8;
    --mlc-font: 'Universal Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================
   SHARED BASE STYLES
   ============================================ */

/* Theme override protection - ID selector beats class-based theme rules */
#mlc-calculator,
#mlc-calculator div,
#mlc-calculator span,
#mlc-calculator p,
#mlc-calculator h1,
#mlc-calculator h2,
#mlc-calculator h3,
#mlc-calculator h4,
#mlc-calculator label,
#mlc-calculator small,
#mlc-calculator input,
#mlc-calculator select,
#mlc-calculator button,
#mlc-calculator textarea,
#mlc-calculator a {
    font-family: var(--mlc-font);
    box-sizing: border-box;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    word-spacing: normal;
    font-style: normal;
}

#mlc-calculator {
    font-family: var(--mlc-font);
    color: #1f2937;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

#mlc-calculator *,
#mlc-calculator *::before,
#mlc-calculator *::after {
    box-sizing: border-box;
}

/* Brand Header */
.mlc-brand-header {
    background: var(--mlc-navy);
    padding: 24px 32px;
    display: flex;
    align-items: center;
}
.mlc-brand-header img {
    height: 44px;
    width: auto;
    max-width: 80%;
    filter: brightness(0) invert(1);
}

/* Labels */
.mlc-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--mlc-navy);
}
.mlc-label small {
    font-weight: 400;
    color: var(--mlc-slate);
    display: block;
    font-size: 14px;
    margin-top: 1px;
    line-height: 1.3;
}

/* Inputs & Selects */
.mlc-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--mlc-border);
    border-radius: 3px;
    font-size: 16px;
    font-family: var(--mlc-font);
    color: #1f2937;
    background: var(--mlc-bg);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
select.mlc-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2369727D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.mlc-input:focus {
    border-color: var(--mlc-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 125, 255, 0.1);
}
.mlc-input[type="number"]::-webkit-inner-spin-button,
.mlc-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mlc-input[type="number"] { -moz-appearance: textfield; }

/* Toggle */
.mlc-toggle-group {
    display: flex;
    border: 1px solid var(--mlc-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}
.mlc-toggle-item {
    flex: 1;
    text-align: center;
    padding: 13px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--mlc-slate);
    background: var(--mlc-bg-off);
    transition: all 0.2s;
    user-select: none;
    border: none;
    font-family: var(--mlc-font);
}
.mlc-toggle-item + .mlc-toggle-item {
    border-left: 1px solid var(--mlc-border);
}
.mlc-toggle-item:hover { color: #374151; }
.mlc-toggle-item.mlc-active {
    background: var(--mlc-navy);
    color: #fff;
}

/* Buttons */
.mlc-btn-primary {
    background: var(--mlc-navy);
    color: #fff;
    padding: 16px 40px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--mlc-font);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    line-height: 1.3;
}
.mlc-btn-primary:hover {
    background: var(--mlc-navy-light);
    transform: translateY(-1px);
    color: #fff;
}
.mlc-btn-primary:active { transform: translateY(0); }
.mlc-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Disclaimer */
.mlc-disclaimer {
    font-size: 14px;
    color: var(--mlc-slate);
    margin-top: 20px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal */
.mlc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 27, 68, 0.55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mlc-modal-overlay.mlc-visible { opacity: 1; }
.mlc-modal {
    background: #fff;
    border-radius: 3px;
    padding: 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(16px);
    transition: transform 0.25s ease;
}
.mlc-modal-overlay.mlc-visible .mlc-modal { transform: translateY(0); }
.mlc-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    font-family: var(--mlc-font);
}
.mlc-modal-close:hover { color: var(--mlc-navy); }
.mlc-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--mlc-navy);
    margin: 0 0 6px;
}
.mlc-modal-subtitle {
    font-size: 14px;
    color: var(--mlc-slate);
    margin: 0 0 24px;
    line-height: 1.5;
}
.mlc-modal-field { margin-bottom: 16px; }
.mlc-modal-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--mlc-navy);
    margin-bottom: 5px;
    min-height: auto;
}
.mlc-modal-field .mlc-input { padding: 12px 14px; }
.mlc-modal .mlc-btn-primary { margin-top: 8px; width: 100%; }
.mlc-modal-error { color: #dc2626; font-size: 14px; margin-top: 10px; display: none; }

/* Success State */
.mlc-success-content { text-align: center; padding: 20px 0; }
.mlc-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.mlc-success-content h3 { font-size: 18px; font-weight: 800; color: var(--mlc-navy); margin: 0 0 4px; }
.mlc-success-content p { font-size: 14px; color: var(--mlc-slate); margin: 0; line-height: 1.5; }

/* ============================================
   LAYOUT: STACKED
   ============================================ */

.mlc-layout-stacked {
    background: var(--mlc-bg-off);
    max-width: 900px;
    margin: 0 auto;
}

.mlc-layout-stacked .mlc-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.mlc-layout-stacked .mlc-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mlc-navy);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.mlc-layout-stacked .mlc-page-subtitle {
    font-size: 15px;
    color: var(--mlc-slate);
    margin: 0 0 40px;
}

/* Section cards */
.mlc-layout-stacked .mlc-section {
    background: var(--mlc-bg);
    border: 1px solid var(--mlc-border);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}
.mlc-layout-stacked .mlc-section-head {
    padding: 18px 28px;
    border-bottom: 1px solid var(--mlc-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.mlc-layout-stacked .mlc-section-num {
    width: 28px;
    height: 28px;
    background: var(--mlc-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}
.mlc-layout-stacked .mlc-section-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mlc-navy);
}
.mlc-layout-stacked .mlc-section-body { padding: 28px; }
.mlc-layout-stacked .mlc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 22px;
}
.mlc-layout-stacked .mlc-form-grid.mlc-no-top { margin-top: 0; }
.mlc-layout-stacked .mlc-full { grid-column: 1 / -1; }

/* Sticky results bar */
.mlc-layout-stacked .mlc-results-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mlc-navy);
    color: #fff;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.mlc-layout-stacked .mlc-results-bar.mlc-visible {
    transform: translateY(0);
    opacity: 1;
}
.mlc-layout-stacked .mlc-results-bar-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 16px;
}
.mlc-layout-stacked .mlc-rb-item { text-align: center; flex: 1; }
.mlc-layout-stacked .mlc-rb-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 2px;
}
.mlc-layout-stacked .mlc-rb-value { font-size: 20px; font-weight: 800; white-space: nowrap; }
.mlc-layout-stacked .mlc-rb-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* Inline results */
.mlc-layout-stacked .mlc-results-inline {
    background: var(--mlc-navy);
    border-radius: 3px;
    padding: 36px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 20px;
}
.mlc-layout-stacked .mlc-ri-block h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    font-weight: 600;
    margin: 0 0 4px;
    color: #fff;
}
.mlc-layout-stacked .mlc-ri-big { font-size: 38px; font-weight: 800; line-height: 1.1; }
.mlc-layout-stacked .mlc-ri-sub { font-size: 14px; opacity: 0.7; margin-top: 4px; }
.mlc-layout-stacked .mlc-ri-right {
    text-align: right;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 32px;
}
.mlc-layout-stacked .mlc-ri-repay { font-size: 26px; font-weight: 700; }
.mlc-layout-stacked .mlc-ri-rate { font-size: 14px; opacity: 0.6; margin-top: 2px; }

/* CTA */
.mlc-layout-stacked .mlc-cta-section { text-align: center; padding: 40px 0; }
.mlc-layout-stacked .mlc-cta-section .mlc-btn-primary { width: 100%; max-width: 440px; }

@media (max-width: 640px) {
    .mlc-layout-stacked .mlc-form-grid { grid-template-columns: 1fr; }
    .mlc-layout-stacked .mlc-full { grid-column: 1; }
    .mlc-layout-stacked .mlc-results-inline { flex-direction: column; text-align: center; gap: 20px; }
    .mlc-layout-stacked .mlc-ri-right { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; text-align: center; }
    .mlc-layout-stacked .mlc-ri-big { font-size: 30px; }
    .mlc-layout-stacked .mlc-results-bar-inner { flex-wrap: wrap; gap: 8px; }
    .mlc-layout-stacked .mlc-rb-value { font-size: 16px; }
    .mlc-layout-stacked .mlc-rb-divider { display: none; }
    .mlc-layout-stacked .mlc-page-title { font-size: 22px; }
}

/* ============================================
   LAYOUT: SIDE BY SIDE
   ============================================ */

.mlc-layout-sidebyside {
    max-width: 1120px;
    margin: 0 auto;
}

/* Header tag removed - using blue bar only */

.mlc-layout-sidebyside .mlc-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
}

/* Form panel */
.mlc-layout-sidebyside .mlc-form-panel {
    padding: 48px;
    background: var(--mlc-bg);
    border-right: 1px solid var(--mlc-border);
}
.mlc-layout-sidebyside .mlc-form-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--mlc-navy);
    margin: 0 0 4px;
}
.mlc-layout-sidebyside .mlc-form-subtitle {
    font-size: 14px;
    color: var(--mlc-slate);
    margin: 0 0 36px;
}
.mlc-layout-sidebyside .mlc-section-label {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--mlc-navy);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mlc-navy);
    display: inline-block;
    margin: 32px 0 20px;
}
.mlc-layout-sidebyside .mlc-section-label:first-of-type { margin-top: 0; }
.mlc-layout-sidebyside .mlc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.mlc-layout-sidebyside .mlc-full { grid-column: 1 / -1; }

/* Results panel */
.mlc-layout-sidebyside .mlc-results-panel {
    padding: 48px 32px;
    background: var(--mlc-bg-off);
    position: sticky;
    top: 0;
    align-self: start;
}
.mlc-layout-sidebyside .mlc-results-eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mlc-slate);
    font-weight: 700;
    margin-bottom: 24px;
}
.mlc-layout-sidebyside .mlc-result-card {
    background: var(--mlc-navy);
    border-radius: 3px;
    padding: 28px 24px;
    color: #fff;
    margin-bottom: 16px;
}
.mlc-layout-sidebyside .mlc-result-card-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.55;
    margin-bottom: 6px;
    font-weight: 600;
}
.mlc-layout-sidebyside .mlc-result-card-value { font-size: 36px; font-weight: 800; line-height: 1.1; }
.mlc-layout-sidebyside .mlc-result-card-sub { font-size: 14px; opacity: 0.65; margin-top: 6px; }
.mlc-layout-sidebyside .mlc-result-card.mlc-secondary {
    background: var(--mlc-bg);
    color: var(--mlc-navy);
    border: 1px solid var(--mlc-border);
}
.mlc-layout-sidebyside .mlc-result-card.mlc-secondary .mlc-result-card-label { color: var(--mlc-slate); opacity: 0.7; }
.mlc-layout-sidebyside .mlc-result-card.mlc-secondary .mlc-result-card-value { font-size: 28px; color: var(--mlc-navy); }
.mlc-layout-sidebyside .mlc-result-card.mlc-secondary .mlc-result-card-sub { color: var(--mlc-slate); }

/* Breakdown */
.mlc-layout-sidebyside .mlc-breakdown {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mlc-border);
}
.mlc-layout-sidebyside .mlc-breakdown-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--mlc-slate);
    font-weight: 700;
    margin-bottom: 12px;
}
.mlc-layout-sidebyside .mlc-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.mlc-layout-sidebyside .mlc-breakdown-row + .mlc-breakdown-row { border-top: 1px solid var(--mlc-border); }
.mlc-layout-sidebyside .mlc-breakdown-val { font-weight: 700; color: var(--mlc-navy); }

.mlc-layout-sidebyside .mlc-results-cta { margin-top: 32px; }
.mlc-layout-sidebyside .mlc-results-cta .mlc-btn-primary { width: 100%; }

@media (max-width: 860px) {
    .mlc-layout-sidebyside .mlc-layout-grid { grid-template-columns: 1fr; }
    .mlc-layout-sidebyside .mlc-form-panel { border-right: none; padding: 32px 24px; }
    .mlc-layout-sidebyside .mlc-results-panel {
        position: relative;
        padding: 32px 24px;
        border-top: 2px solid var(--mlc-navy);
    }
    .mlc-layout-sidebyside .mlc-fields { grid-template-columns: 1fr; }
    .mlc-layout-sidebyside .mlc-full { grid-column: 1; }
    /* brand header is just a bar, no padding override needed */
}

/* ============================================
   LAYOUT: WIZARD
   ============================================ */

.mlc-layout-wizard {
    background: var(--mlc-bg-off);
    max-width: 900px;
    margin: 0 auto;
}

/* Progress bar */
.mlc-layout-wizard .mlc-progress-wrap {
    max-width: 640px;
    margin: 32px auto 0;
    padding: 0 24px;
}
.mlc-layout-wizard .mlc-progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}
.mlc-layout-wizard .mlc-progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: var(--mlc-border);
}
.mlc-layout-wizard .mlc-progress-track {
    position: absolute;
    top: 16px;
    left: 32px;
    height: 2px;
    background: var(--mlc-navy);
    transition: width 0.4s ease;
    width: 0;
}
.mlc-layout-wizard .mlc-step-label { text-align: center; }
.mlc-layout-wizard .mlc-step-label span {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--mlc-slate);
    margin-top: 8px;
    font-weight: 600;
}
.mlc-layout-wizard .mlc-step-label.mlc-active span { color: var(--mlc-navy); font-weight: 700; }
.mlc-layout-wizard .mlc-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--mlc-border);
    background: var(--mlc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--mlc-slate);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    margin: 0 auto;
}
.mlc-layout-wizard .mlc-step-dot.mlc-active,
.mlc-layout-wizard .mlc-step-dot.mlc-done {
    border-color: var(--mlc-navy);
    background: var(--mlc-navy);
    color: #fff;
}

/* Card */
.mlc-layout-wizard .mlc-card {
    max-width: 640px;
    margin: 28px auto 0;
    padding: 0 24px 80px;
}
.mlc-layout-wizard .mlc-card-inner {
    background: var(--mlc-bg);
    border: 1px solid var(--mlc-border);
    border-radius: 3px;
    overflow: hidden;
}
.mlc-layout-wizard .mlc-card-body { padding: 36px 32px; }
.mlc-layout-wizard .mlc-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--mlc-navy);
    margin: 0 0 4px;
}
.mlc-layout-wizard .mlc-card-subtitle {
    font-size: 14px;
    color: var(--mlc-slate);
    margin: 0 0 28px;
}
.mlc-layout-wizard .mlc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.mlc-layout-wizard .mlc-full { grid-column: 1 / -1; }

/* Wizard steps */
.mlc-layout-wizard .mlc-wizard-step { display: none; }
.mlc-layout-wizard .mlc-wizard-step.active { display: block; }

/* Navigation */
.mlc-layout-wizard .mlc-card-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-top: 1px solid var(--mlc-border);
    background: var(--mlc-bg-off);
}
.mlc-layout-wizard .mlc-btn-back {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--mlc-slate);
    cursor: pointer;
    font-family: var(--mlc-font);
    padding: 14px 0;
    transition: color 0.2s;
}
.mlc-layout-wizard .mlc-btn-back:hover { color: var(--mlc-navy); }
.mlc-layout-wizard .mlc-btn-back.mlc-hidden { visibility: hidden; }

/* Results step */
.mlc-layout-wizard .mlc-results-hero {
    background: var(--mlc-navy);
    border-radius: 3px;
    padding: 36px 28px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
}
.mlc-layout-wizard .mlc-results-hero-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.55;
    margin-bottom: 8px;
}
.mlc-layout-wizard .mlc-results-hero-value {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
}
.mlc-layout-wizard .mlc-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.mlc-layout-wizard .mlc-results-tile {
    background: var(--mlc-bg-off);
    border: 1px solid var(--mlc-border);
    border-radius: 3px;
    padding: 20px;
}
.mlc-layout-wizard .mlc-results-tile-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mlc-slate);
    margin-bottom: 4px;
    font-weight: 600;
}
.mlc-layout-wizard .mlc-results-tile-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--mlc-navy);
}
.mlc-layout-wizard .mlc-results-tile-sub {
    font-size: 14px;
    color: var(--mlc-slate);
    margin-top: 2px;
}
.mlc-layout-wizard .mlc-results-summary {
    border-top: 1px solid var(--mlc-border);
    padding-top: 20px;
    margin-bottom: 28px;
}
.mlc-layout-wizard .mlc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.mlc-layout-wizard .mlc-summary-row span:last-child { font-weight: 700; color: var(--mlc-navy); }
.mlc-layout-wizard .mlc-cta-section .mlc-btn-primary { width: 100%; }
.mlc-layout-wizard .mlc-disclaimer { text-align: center; }

@media (max-width: 640px) {
    .mlc-layout-wizard .mlc-fields { grid-template-columns: 1fr; }
    .mlc-layout-wizard .mlc-full { grid-column: 1; }
    .mlc-layout-wizard .mlc-card-body { padding: 28px 20px; }
    .mlc-layout-wizard .mlc-card-nav { padding: 16px 20px; }
    .mlc-layout-wizard .mlc-results-hero-value { font-size: 32px; }
    .mlc-layout-wizard .mlc-results-grid { grid-template-columns: 1fr; }
    .mlc-layout-wizard .mlc-step-label span { font-size: 14px; }
}
