/* Mortgage / home-equity wizard -- structure. Colors come from page.css. */

:root {
    --mw-brand: #164915;
    --mw-accent: #d9a700;
    --mw-header-bg: #ffffff;
    --mw-footer-bg: #164915;
    --mw-footer-text: #ffffff;
    --mw-brand-dark: color-mix(in srgb, var(--mw-brand) 78%, #000);
    --mw-brand-tint: color-mix(in srgb, var(--mw-brand) 8%, #fff);
    --mw-brand-ring: color-mix(in srgb, var(--mw-brand) 25%, transparent);
    --mw-ink: #15201a;
    --mw-muted: #5b6a64;
    --mw-line: #d7dfdb;
    --mw-bg: #f4f6f3;
    --mw-danger: #c0392b;
    --mw-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body.mw {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--mw-ink);
    background: var(--mw-bg);
}

.mw-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.mw-wrap--narrow { max-width: 620px; }
svg { flex: none; }

/* ---- header ----------------------------------------------------------- */
.mw-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--mw-header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.mw-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mw-logo img { display: block; width: auto; max-width: 220px; }
.mw-header-call {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--mw-brand); text-decoration: none; font-weight: 700;
}
.mw-header-call svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%;
    background: var(--mw-brand-tint); stroke: var(--mw-brand); fill: none; stroke-width: 2; }
.mw-header-call-text { display: flex; flex-direction: column; line-height: 1.15; }
.mw-header-call-text small { font-size: 12px; font-weight: 500; color: var(--mw-muted); }

/* ---- hero ------------------------------------------------------------- */
.mw-hero {
    position: relative;
    padding: 56px 0 72px;
    color: #fff;
    background:
        radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--mw-accent) 35%, transparent), transparent 70%),
        radial-gradient(700px 500px at -10% 110%, rgba(255, 255, 255, .10), transparent 60%),
        linear-gradient(160deg, var(--mw-brand) 0%, var(--mw-brand-dark) 100%);
    overflow: hidden;
}
.mw-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
            mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.mw-hero--short { padding: 40px 0 56px; }
.mw-hero > .mw-wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
    .mw-hero > .mw-wrap:not(.mw-wrap--narrow) { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .mw-pitch { padding-top: 24px; }
}

.mw-eyebrow {
    display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}
.mw-headline { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.mw-hello { display: block; color: var(--mw-accent); }
.mw-sub { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 34em; }
.mw-sub p { margin: 0 0 12px; }
.mw-sub ul { list-style: none; margin: 16px 0 0; padding: 0; }
.mw-sub li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.mw-sub li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--mw-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.mw-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.mw-trust li { display: inline-flex; align-items: center; gap: 8px; }
.mw-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--mw-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- card ------------------------------------------------------------- */
.mw-card {
    color: var(--mw-ink); background: #fff; border-radius: 22px; padding: 28px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .06);
}
@media (max-width: 520px) { .mw-card { padding: 22px 18px; border-radius: 18px; } }

.mw-progress { margin-bottom: 22px; }
.mw-progress-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--mw-muted); margin-bottom: 8px; }
.mw-progress-meta span:last-child { color: var(--mw-brand); }
.mw-progress-track { height: 6px; border-radius: 999px; background: #e9eeeb; overflow: hidden; }
.mw-progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--mw-brand), var(--mw-accent)); transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.mw-step { animation: mw-in .35s ease both; }
@keyframes mw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mw-step, .mw-progress-fill { animation: none; transition: none; } }

.mw-step-title { margin: 0 0 18px; font-size: 22px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; outline: none; }
.mw-note { margin: -6px 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: #fff6e8; color: #7a4b0c; }

/* ---- fields ----------------------------------------------------------- */
.mw-field { margin-bottom: 16px; min-width: 0; }
.mw-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.mw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mw-row--city { grid-template-columns: 1.4fr 1fr .9fr; }
@media (max-width: 520px) {
    .mw-row { grid-template-columns: 1fr; }
    .mw-row--city { grid-template-columns: 1fr 1fr; }
    .mw-row--city .mw-field:first-child { grid-column: 1 / -1; }
}
.mw-input, .mw-field select {
    display: block; width: 100%; height: 52px; padding: 0 14px;
    font: inherit; font-size: 16px; color: var(--mw-ink);
    background: #fff; border: 1.5px solid var(--mw-line); border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.mw-field select {
    padding-right: 36px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235b6a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
}
.mw-input:focus, .mw-field select:focus { outline: none; border-color: var(--mw-brand); box-shadow: 0 0 0 4px var(--mw-brand-ring); }
.mw-input--pin { height: 60px; font-size: 22px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mw-input.is-invalid, .mw-field select.is-invalid { border-color: var(--mw-danger); }
.mw-help { margin: 8px 0 0; font-size: 13px; color: var(--mw-muted); }
.mw-error { display: none; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--mw-danger); }
.mw-error.is-shown { display: block; }

/* ---- identity --------------------------------------------------------- */
.mw-identity {
    display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 16px;
    border-radius: var(--mw-radius); background: var(--mw-brand-tint);
    border: 1.5px solid color-mix(in srgb, var(--mw-brand) 18%, #fff);
}
.mw-identity > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--mw-brand); fill: none; stroke: #fff; stroke-width: 2; }
.mw-identity > div { flex: 1; min-width: 0; }
.mw-identity-name { font-size: 18px; font-weight: 700; }
.mw-identity-addr { font-size: 15px; color: var(--mw-muted); }
.mw-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--mw-brand); text-decoration: underline; cursor: pointer; }
.mw-identity-fields { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px dashed var(--mw-line); margin-bottom: 18px; }

/* ---- questions -------------------------------------------------------- */
.mw-q { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.mw-q legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.mw-q.is-invalid legend { color: var(--mw-danger); }
.mw-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mw-yn label, .mw-choice label { position: relative; display: block; cursor: pointer; }
.mw-yn input, .mw-choice input { position: absolute; opacity: 0; pointer-events: none; }
.mw-yn span, .mw-choice span {
    display: flex; align-items: center; justify-content: center;
    height: 48px; border-radius: 12px; font-weight: 700;
    border: 1.5px solid var(--mw-line); background: #fff;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.mw-yn label:hover span, .mw-choice label:hover span { border-color: var(--mw-brand); }
.mw-yn input:focus-visible + span, .mw-choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--mw-brand-ring); }
.mw-yn input:checked + span, .mw-choice input:checked + span { background: var(--mw-brand); border-color: var(--mw-brand); color: #fff; }
.mw-yn label:active span, .mw-choice label:active span { transform: scale(.98); }
.mw-q.is-invalid .mw-yn span { border-color: var(--mw-danger); }

.mw-q--solo legend { font-size: 22px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 8px; }
.mw-choice { display: grid; gap: 12px; margin-top: 18px; }
.mw-choice span { height: 64px; font-size: 18px; }

/* ---- buttons ---------------------------------------------------------- */
.mw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 56px; margin-top: 8px; padding: 0 20px;
    font: inherit; font-size: 17px; font-weight: 700; color: #fff; text-decoration: none;
    background: var(--mw-brand); border: 0; border-radius: 12px; cursor: pointer;
    box-shadow: 0 10px 20px -10px var(--mw-brand);
    transition: background .15s, transform .1s;
}
.mw-btn:hover { background: var(--mw-brand-dark); }
.mw-btn:active { transform: translateY(1px); }
.mw-btn:disabled { opacity: .7; cursor: progress; }
.mw-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mw-btn--ghost { background: #fff; color: var(--mw-brand); border: 2px solid var(--mw-brand); box-shadow: none; }
.mw-btn--ghost:hover { background: var(--mw-brand-tint); }
.mw-back { display: block; margin: 14px auto 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--mw-muted); cursor: pointer; }
.mw-back::before { content: "\2190\00a0"; }
.mw-alt { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--mw-muted); }
.mw-alt a { color: var(--mw-brand); font-weight: 700; }
.mw-sending { margin: 16px 0 0; text-align: center; font-weight: 600; color: var(--mw-brand); }
.mw-fineprint { margin: 4px 0 12px; font-size: 12px; line-height: 1.45; color: var(--mw-muted); }
.sms-consent-container { font-size: 13px; }
.sms-consent-container .form-check { display: flex; gap: 10px; align-items: flex-start; }
.sms-consent-container input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mw-brand); }

/* ---- done ------------------------------------------------------------- */
.mw-done { text-align: center; }
.mw-done-icon svg { width: 72px; height: 72px; margin: 4px auto 14px; display: block; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.mw-done-icon circle { stroke: var(--mw-brand); stroke-dasharray: 151; stroke-dashoffset: 151; animation: mw-draw .6s ease forwards; }
.mw-done-icon path { stroke: var(--mw-accent); stroke-dasharray: 36; stroke-dashoffset: 36; animation: mw-draw .35s .5s ease forwards; }
@keyframes mw-draw { to { stroke-dashoffset: 0; } }
.mw-callcard { margin: 0 0 16px; padding: 20px; border-radius: var(--mw-radius); background: var(--mw-brand-tint); }
.mw-callcard p { margin: 0; }
.mw-callcard-lead, .mw-callcard-when { color: var(--mw-muted); }
.mw-fallback { padding-top: 16px; border-top: 1px solid var(--mw-line); }
.mw-fallback p { margin: 0 0 12px; font-size: 15px; color: var(--mw-muted); }
.mw-pin { display: inline-flex; flex-direction: column; margin-top: 16px; padding: 10px 22px; border-radius: 12px; border: 2px dashed var(--mw-accent); }
.mw-pin span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mw-muted); }
.mw-pin strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; }
.mw-pin strong:empty { display: none; }

/* ---- pre-qualified amount (screen 3) ----------------------------------- */
.mw-offer {
    margin: 4px 0 18px; padding: 22px 20px; text-align: center;
    border-radius: var(--mw-radius);
    background: linear-gradient(160deg, var(--mw-brand) 0%, var(--mw-brand-dark) 100%);
    color: #fff; box-shadow: 0 14px 30px -18px var(--mw-brand);
}
.mw-offer-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.mw-offer-amount { display: block; margin-top: 6px; font-size: clamp(34px, 7vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--mw-accent); }
.mw-offer--unknown .mw-offer-amount { font-size: 22px; font-weight: 700; color: #fff; text-transform: none; }
.mw-offer-q { margin: 0 0 4px; font-size: 17px; font-weight: 600; line-height: 1.35; text-align: center; }
.mw-help--center { text-align: center; margin-top: 14px; }
.mw-choice span { height: auto; min-height: 60px; padding: 10px 16px; text-align: center; line-height: 1.25; }

/* ---- footer: NMLS line -------------------------------------------------- */
.mw-footer-nmls { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; opacity: .9; }
.mw-footer-nmls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mw-footer-nmls a { text-decoration: underline; }

/* ---- below the fold --------------------------------------------------- */
.mw-how { padding: 56px 0 24px; }
.mw-how-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .mw-how-grid { grid-template-columns: 1fr; } }
.mw-how-item { padding: 24px; background: #fff; border-radius: var(--mw-radius); border: 1px solid #e3e9e6; }
.mw-how-item h3 { margin: 12px 0 6px; font-size: 18px; }
.mw-how-item p { margin: 0; color: var(--mw-muted); }
.mw-how-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; color: #fff; background: var(--mw-brand); }

.mw-disclosure { padding: 24px 0 48px; }
.mw-disclosure p { margin: 0; padding: 18px 20px; font-size: 13px; line-height: 1.55; color: var(--mw-muted); background: #fff; border-radius: var(--mw-radius); border: 1px solid #e3e9e6; }

.mw-footer { padding: 32px 0; font-size: 14px; text-align: center; color: var(--mw-footer-text); background: var(--mw-footer-bg); }
.mw-footer p { margin: 0 0 10px; }
.mw-footer a { color: inherit; }
.mw-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.mw-footer-copy { opacity: .75; font-size: 13px; }

@media (max-width: 520px) {
    .mw-hero { padding: 28px 0 40px; }
    .mw-hero > .mw-wrap { gap: 24px; }
    /* Phones: keep the wizard near the top -- headline and one line of copy
       above it, the bullet list and trust row are desktop-only. */
    .mw-sub { font-size: 16px; }
    .mw-sub ul, .mw-trust { display: none; }
    .mw-header-call-text small { display: none; }
    .mw-logo img { max-width: 160px; }
}
