@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Sora:wght@100..800&display=swap');

.mortgage-brokers-page {
    --mb-navy: #0b1b35;
    --mb-navy-deep: #020c34;
    --mb-navy-deep2: #091843;
    --mb-teal: #00c9a7;
    --mb-orange: #f5a623;
    --mb-orange-hover: #e89412;
    --mb-text: #0b1b35;
    --mb-muted: #5c6b82;
    --mb-bg: #ffffff;
    --mb-bg-soft: #f4f6f9;
    --mb-bg-soft2: #f2f5fa;
    --mb-bg-faq: #eef2f7;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--mb-text);
    background: var(--mb-bg);
    line-height: 1.6;
    padding: 0;
}

.mortgage-brokers-page * {
    box-sizing: border-box;
}

.mortgage-brokers-page .max-wid {
    max-width: 395px;
    margin: 0 auto;
}

.mb-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.mb-eyebrow {
    display: block;
    margin: 0 0 12px;
    text-align: center;
    font-family: "Domine", serif;
    text-transform: capitalize;
    color: var(--mb-navy-deep2);
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 400;
}

.mb-title {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.15;
    text-align: center;
    font-weight: 700;
    color: var(--mb-navy);
    letter-spacing: -0.02em;
}

.mb-title .mb-green {
    color: var(--mb-teal);
    line-height: 1.15;
}

.mb-sub {
    margin: 0 auto 32px;
    max-width: 775px;
    text-align: center;
    line-height: 1.7;
    color: var(--mb-navy-deep2);
    font-size: 17px;
    font-weight: 400;
    font-family: "Domine", serif;
}

.mb-btn {
    border: 0;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-family: "Montserrat", sans-serif;
}

.mb-btn-primary {
    background: var(--mb-orange);
    color: #fff !important;
    /* box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4); */
}

.mb-btn-primary:hover {
    background: var(--mb-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
    color: #fff !important;
}


.mb-btn-outline {
    background: transparent;
    color: var(--mb-navy) !important;
    border: 2px solid var(--mb-navy);
}

.mb-btn-outline:hover {
    background: rgba(11, 27, 53, 0.05);
}

.mb-link {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    color: var(--mb-navy-deep2);
    font-family: "Montserrat", sans-serif;
}

.mb-link:hover {
    text-decoration: underline;
    color: #00a88a;
}

.mb-section {
    padding: 88px 0;
}

.mb-section-soft {
    background: var(--mb-bg-soft2);
}

.mb-section--faq {
    background: var(--mb-bg-soft2);
}

.mb-center-cta {
    text-align: center;
    margin-top: 36px;
}

.mb-quote-cta {
    text-align: center;
    margin-top: 36px;
    align-items: center;
    gap: 20px;
}

/* Hero */
.mb-hero {
    background: url("https://d3jixizdkhde11.cloudfront.net/images/hero-background.webp")no-repeat center/cover;
    color: #fff;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}

.mb-hero::after {
    background: url(https://d3jixizdkhde11.cloudfront.net/images/ai-quote-tool-person-img-v2.png)no-repeat right bottom;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 345px;
    height: 100%;
    content: "";
    z-index: 1;
    transform: scaleX(-1);
    transform-origin: center;
}

.mb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 201, 167, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
    pointer-events: none;
}

.mb-hero-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mb-hero-copy {
    max-width: 700px;
    width: 100%;
    text-align: left;
}

.mb-hero-copy .overlay-text {
    max-width: 515px;
    margin-bottom: 40px;
}

.mb-hero h1 {
    margin: 0 0 20px;
    font-size: 46px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.mb-hero h1 .mb-green {
    color: var(--mb-teal);
}

.mb-hero h1,
.mb-hero h1 .mb-green {
    line-height: 1.3;
}

.mb-hero-lead {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.mb-hero-actions {
    margin-top: 28px;
}

.mb-hero-art {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 420px;
}

.mb-hero-art img {
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px 8px 0 0;
}

.mb-section-soft .mb-eyebrow {
    font-family: "Domine", serif;
    text-transform: capitalize;
    color: var(--mb-navy-deep2);
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 400;
}

/* Quote cards */
.mb-quote-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 8px;
}

.mb-qcard {
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    background: #fff;
    padding: 28px 40px;
    text-align: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mb-qcard:hover {
    border: 1px solid #091843;
}

.mb-qcard-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;
    color: var(--mb-navy);
}

.mb-qcard-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.mb-qcard-icon i>img {
    max-width: max-content;
    width: 100%;
    max-height: 48px;
}

.mb-qcard h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--mb-navy-deep2);
    line-height: 1.3;
    font-family: "Sora", sans-serif;
}

.mb-qcard p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: var(--mb-navy-deep2);
    font-family: "Montserrat", sans-serif;
}

/* Blockers */
.mb-blockers {
    color: #fff;
    position: relative;
    overflow: hidden;
    background: #091843;
}

.mb-blockers::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://d3jixizdkhde11.cloudfront.net/images/uri_ifs___M_sLkHDXClU9cO4LuqnjKH0ua6hD5slNDYHdefQfgMHxI.webp")no-repeat center/cover;
    opacity: 0.2;
    pointer-events: none;
}

.mb-blockers .mb-wrap {
    position: relative;
    z-index: 1;
}

.mb-blockers .mb-title {
    color: var(--mb-bg);
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.mb-blockers .mb-eyebrow {
    color: var(--mb-bg);
}

.mb-blockers .mb-sub {
    color: var(--mb-bg);
}

.mb-blocker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin: 0 auto;
    margin-bottom: 32px;
    max-width: 715px;
}

.mb-blocker-card {
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    background: #fff;
    padding: 28px 40px;
    text-align: center;
}

.mb-blocker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.mb-blocker-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--mb-navy-deep2);
    line-height: 1.3;
    font-family: "Sora", sans-serif;
}

.mb-blocker-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: var(--mb-navy-deep2);
    font-family: "Montserrat", sans-serif;
}

.mb-blockers-tagline {
    margin: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

/* Rebuilt */
.mb-section-rebuilt {
    position: relative;
    overflow: hidden;
    background: var(--mb-bg-soft2);
}

.mb-section-rebuilt::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url(https://d3jixizdkhde11.cloudfront.net/images/commloan-rebuilt-cre-lending-bg-june-26.webp) no-repeat left top / cover;
    opacity: 0.8;
    pointer-events: none;
    width: 100%;
    height: 90%;
    top: 15%;
    left: 15%;
}

.mb-section-rebuilt .mb-wrap {
    position: relative;
    z-index: 1;
}

.mb-section-rebuilt .max-wid {
    display: grid;
    margin: 0 auto;
    margin-bottom: 32px;
    max-width: 85%;
}

.mb-section-rebuilt .mb-blockers-tagline {
    color: var(--mb-text);
}

.mb-section-rebuilt .mb-center-cta {
    margin-top: 50px;
}

.mb-rebuilt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    max-width: 70%;
    margin: 0 auto;
}

.mb-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mb-feature-icon {
    width: 100px;
    height: 100px;
    color: var(--mb-orange);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.max-75 {
    max-width: 75%;
}


.mb-feature h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--mb-navy-deep2);
    line-height: 1.3;
    font-family: "Sora", sans-serif;

}

.mb-feature p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mb-navy-deep2);
    font-family: "Montserrat", sans-serif;
}

/* Testimonial + stats */
.mb-advantage {
    background: var(--mb-bg-soft2);
    position: relative;
    z-index: 1;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 50px 0px;
}

.mb-test-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}

.pd-0 {
    padding-top: 0;
}

.mb-test-image-shape img {
    max-width: inherit;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
}

.mb-test-copy {
    padding: 60px 0px;
    text-align: center;
}

.mb-test-image {
    position: relative;
}

.mb-test-image-shape {
    width: 860px;
    position: absolute;
    top: -100px;
    right: 0;
    height: 860px;
    overflow: hidden;
    border-radius: 0% 50% 50% 0%;
}

.mb-test-intro {

    font-size: 16.3px;
    line-height: 1.4;
    color: var(--mb-navy-deep2);
    font-family: "Montserrat", sans-serif;
    margin-bottom: 30px;
    text-align: left;
}

.mb-quote-box {
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ffa41b;
    padding: 24px 28px;
    position: relative;
    border-radius: 36px;
    max-width: 510px;
}

.mb-quote-box::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -50px;
    background: url(https://d3jixizdkhde11.cloudfront.net/images/mortage-brokrage-quote-icons.png) no-repeat center/100%;
    width: 86px;
    height: 62px;
}

.mb-quote-box p {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--mb-navy);
    font-family: "Montserrat", sans-serif;
    position: relative;
    font-weight: bold;
    z-index: 1;
}

.mb-quote-box cite {
    display: block;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    color: var(--mb-navy);
    font-family: "Sora", sans-serif;
    text-align: right;
}

.mb-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.mb-stat {
    text-align: center;
    padding: 8px 12px;
    background: transparent;
    border: 0;
}

.mb-stat strong {
    font-family: "Sora", sans-serif;
    display: block;
    font-size: 56px;
    line-height: 1.1;
    color: var(--mb-navy);
    font-weight: 600;
    margin-bottom: 10px;
}

.mb-stat span {
    display: block;
    margin-top: 8px;
    color: var(--mb-text);
    font-size: 18px;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    font-family: "Montserrat", sans-serif;
}

/* Dark CTA */
.mb-bottom-cta {
    background: var(--mb-navy-deep2);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mb-bottom-cta::before {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 58%;
    height: 98%;
    background: url(https://d3jixizdkhde11.cloudfront.net/images/cre-lending-system-bg-img.webp) no-repeat bottom right 0px / 100% auto;
}

.mb-bottom-cta .mb-wrap {
    position: relative;
    z-index: 1;
}

.mb-bottom-cta .mb-title {
    color: #fff;
    text-align: left;
    max-width: 650px;
}

.mb-bottom-cta .mb-sub {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    margin-bottom: 28px;
    text-align: left;
    max-width: 745px;
}

/* FAQ */
.mb-faq {
    max-width: 800px;
    margin: 0 auto;
}

.mb-faq-item {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
}

.mb-faq-item.is-open {
    border-color: #b8c4d4;
}

.mb-faq-btn {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 18px 48px 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mb-navy);
    position: relative;
    cursor: pointer;
    line-height: 1.4;
}

.mb-faq-btn::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--mb-muted);
    line-height: 1;
}

.mb-faq-item.is-open .mb-faq-btn::after {
    content: "\2212";
}

.mb-faq-content {
    display: none;
    padding: 0 20px 18px;
    line-height: 1.7;
    color: var(--mb-muted);
    font-size: 14px;
}

/* Pre-footer CTA */
.mb-footer-cta {
    background: var(--mb-bg-soft2);
    text-align: center;
    padding: 64px 0;

}

.mb-footer-cta p {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mb-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.how-it-works-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
}

.how-it-works-modal.is-open {
    display: flex;
}

.how-it-works-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.how-it-works-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.how-it-works-modal__embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.how-it-works-modal__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.broker-form-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12500;
    background: rgba(15, 23, 42, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.broker-form-modal.is-open {
    display: flex;
}

.broker-form-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    font-family: "Montserrat", Arial, sans-serif;
    transition: max-width 0.25s ease;
    display: flex;
    flex-direction: column;
}

.broker-form-dialog--wide {
    max-width: 600px;
}

.broker-form-dialog--tall {
    max-width: 520px;
}

.broker-form-dialog--calendar {
    max-width: 820px;
}

.broker-form-dialog.is-thankyou .broker-popup-progress-wrap {
    display: none;
}

.broker-form-dialog.is-thankyou .broker-popup-foot {
    display: none;
}

.broker-thankyou {
    text-align: center;
    padding: 4px 0 0;
}

.broker-thankyou-check {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.broker-thankyou-check svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.broker-thankyou-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.broker-thankyou-text {
    margin: 0 auto 18px;
    max-width: 540px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.broker-thankyou-cal {
    min-height: 560px;
}

.broker-thankyou-cal .meetings-iframe-container {
    min-height: 560px;
}

/* Commercial calendar takeover hides the header (full-screen confirmation). */
.broker-form-dialog.is-calendar .broker-popup-head {
    display: none;
}

/* Residential disqualification screen keeps the header but uses a brand-blue icon. */
.broker-thankyou--dq {
    padding: 18px 0 8px;
}

.broker-thankyou-check--dq {
    background: #2563eb;
}

/* Step 1 "Get Started" sits on its own full-width row. */
.broker-popup-row--single {
    display: block;
}

.broker-popup-row--single .broker-popup-next {
    width: 100%;
}

.broker-popup-shell {
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.broker-form-modal button,
.broker-form-modal .broker-popup-choice {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.broker-popup-head {
    flex-shrink: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px 18px;
}

.broker-popup-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.broker-popup-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.broker-popup-head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.broker-form-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
    padding: 7px 0px;
}

.broker-form-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.broker-form-close.broker-form-close-calender {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
}

.broker-popup-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 24px 12px;
}

.broker-popup-progress-wrap {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.broker-popup-progress {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.broker-popup-progress span {
    display: block;
    width: 14%;
    min-width: 4px;
    height: 100%;
    min-height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb 0%, #f59e0b 100%);
    transition: width 0.35s ease;
}

.broker-popup-step {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.broker-popup-viewport {
    width: 100%;
}

.broker-popup-track {
    display: block;
    width: 100%;
}

.broker-popup-slide {
    display: none;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.broker-popup-slide.is-active {
    display: block;
}

.broker-popup-q {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.broker-popup-qsub {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.broker-popup-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.broker-popup-choices--stack {
    grid-template-columns: 1fr;
}

.broker-popup-choices--stack {
    gap: 10px;
}

.broker-popup-choices--stack .broker-popup-choice {
    min-height: 44px;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.broker-popup-choices--icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.broker-popup-choice {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    min-height: 52px;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.broker-popup-choice:hover:not(.active) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.broker-popup-choice.active {
    border: 2px solid #2563eb;
    background: #eff6ff;
    padding: 13px 11px;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.broker-popup-choice--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 108px;
    padding: 16px 10px;
}

.broker-popup-choice--card.active {
    padding: 15px 9px;
}

.broker-popup-choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    line-height: 0;
}

.broker-popup-choice-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.broker-popup-nav-main {
    margin-top: 12px;
    padding-top: 0;
}

.broker-popup-nav-main[hidden] {
    display: none !important;
}

.broker-popup-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.broker-popup-back:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.broker-popup-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: stretch;
}

.broker-popup-row .broker-popup-back {
    flex: 0 0 auto;
}

.broker-popup-next,
.broker-popup-submit {
    flex: 1;
    margin-top: 0;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.broker-popup-next:hover,
.broker-popup-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.broker-popup-field {
    margin-bottom: 16px;
}

.broker-popup-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.broker-popup-field .req {
    color: #dc2626;
}

.broker-popup-optional {
    font-weight: 400;
    color: #94a3b8;
}

.broker-popup-input,
.broker-popup-select,
.broker-popup-textarea {
    width: 100%;
    margin-top: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.broker-popup-input:focus,
.broker-popup-select:focus,
.broker-popup-textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.broker-popup-input.is-invalid,
.broker-popup-select.is-invalid,
.broker-popup-textarea.is-invalid {
    border-color: #dc2626;
    background: #fff;
}

.broker-popup-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.broker-popup-error {
    display: none;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #dc2626;
}

.broker-popup-error.is-visible {
    display: flex;
}

.broker-popup-error-icon {
    flex-shrink: 0;
}

.broker-popup-textarea {
    min-height: 88px;
    resize: vertical;
    margin-top: 12px;
}

.broker-popup-select {
    margin-top: 0;
}

.broker-popup-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.broker-popup-success {
    display: none;
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.broker-popup-success.show {
    display: block;
}

.broker-popup-success--error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
}

.broker-popup-foot {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.broker-popup-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.broker-popup-foot-item svg {
    width: 14px;
    height: 14px;
    color: #10b981;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .mb-bottom-cta::before {
        width: 75%;
    }
}

@media (max-width: 991px) {
    .mb-section {
        padding: 64px 0;
    }

    .mb-hero-grid,
    .mb-quote-cards,
    .mb-blocker-grid,
    .mb-rebuilt-grid,
    .mb-test-grid,
    .mb-stats {
        grid-template-columns: 1fr;
    }

    .mb-hero {
        padding-top: 48px;
    }

    .mb-hero-copy {
        /* text-align: center; */
        padding-bottom: 24px;
    }

    .mb-hero h1 {
        font-size: 34px;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .mb-hero-lead {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .mb-hero-actions {
        justify-content: center;
    }

    .mb-hero-art {
        min-height: 280px;
        justify-content: center;
    }

    .mb-title {
        font-size: 32px;
    }

    .mb-test-copy h3 {
        font-size: 30px;
        text-align: center;
    }

    .mb-test-intro {
        text-align: center;
    }

    .mb-hero::after {
        background: url(https://d3jixizdkhde11.cloudfront.net/images/ai-quote-tool-person-img-v2.png) no-repeat right bottom/100%;
        width: 35%;
    }
    .mb-test-image-shape {
        width: 100%;
        position: inherit;
        top: inherit;
        right: inherit;
        height: inherit;
        overflow: hidden;
        border-radius: inherit;
    }
    .mb-test-image-shape img {
        max-width: 100%;
        position: inherit;
        top: inherit;
        left: inherit;
        transform: inherit;
        width: 100%;
        height: auto;
    }
    .mb-stat strong {
        font-size: 42px;
    }
    .mb-feature-icon {
        width: 70px;
        height: 70px;
    }
    .mb-quote-box::before {
        top: -20px;
        left: -34px;
        width: 62px;
        height: 48px;
    }

    .mb-rebuilt-grid {
        gap: 28px;
    }
    .mb-advantage.mb-advantage-mob {
        padding-top: 0;
    }
    .mb-advantage.mb-advantage-mob .mb-test-image {
        display: none;
    }
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        content: "";
        position: absolute;
        top: -20px;
        left: -350px;
        width: 700px;
        height: 700px;
        background: url(https://d3jixizdkhde11.cloudfront.net/images/operate-with-institutional-grade.webp) no-repeat center / auto 100%;
        border-radius: 0% 50% 50% 0%;
        opacity: 0.5;
    }

    .mb-advantage.mb-advantage-mob .mb-wrap {
        position: relative;
    }
    .mb-advantage.mb-advantage-mob .mb-test-grid {
        position: relative;
        z-index: 1;
    }
}
@media (max-width: 767px) {
    .mb-hero {
        padding-bottom: 50px;
    }
    .mb-bottom-cta::before {
        width: 90%;
    }
    .mb-hero-copy {
        text-align: center;
    }
    .mb-hero::after {
        display: none;
    }
    .mb-hero-copy .overlay-text {
        margin: 0 auto;
        margin-bottom: 30px;
    }
    .mb-bottom-cta .mb-wrap, .mb-bottom-cta .mb-title, .mb-bottom-cta .mb-sub {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .mb-wrap {
        padding: 0 16px;
    }

    .mb-section {
        padding: 48px 0;
    }

    .mb-hero h1 {
        font-size: 28px;
    }

    .mb-title {
        font-size: 26px;
    }

    .mb-test-copy h3 {
        font-size: 26px;
    }

    .mb-stat strong {
        font-size: 34px;
    }

    .mb-bottom-cta .mb-title {
        font-size: 26px;
    }

    .mb-quote-cta {
        flex-direction: column;
    }

    .broker-popup-head {
        padding: 16px 18px 14px;
    }

    .broker-popup-body {
        padding: 16px 18px 12px;
    }

    .broker-popup-q {
        font-size: 18px;
    }

    .broker-popup-choices {
        grid-template-columns: 1fr;
    }

    .broker-popup-choices--icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .broker-form-dialog--wide {
        max-width: 100%;
    }

    .broker-popup-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .broker-popup-foot-item {
        white-space: normal;
    }
    .mb-quote-box {
        max-width: 80%;
        padding: 20px;
    }
    .mb-quote-box p {
        font-size: 16px;
        line-height: 1.4;
    }
    .mb-quote-box::before {
        top: -10px;
        left: -25px;
        width: 50px;
        height: 40px;
    }
    .mb-bottom-cta::before {
        width: 100%;
        right: -10%;
        bottom: -6%;
    }
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        top: -13%;
    }
}

@media (max-width: 640px) {
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        top: -10%;
    }
}

@media (max-width: 452px) {
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        top: -8%;
        left: -410px;
    }
}

@media (max-width: 396px) {
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        top: -6%;
    }
}

@media (max-width: 380px) {
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        top: -4%;
    }
}

@media (max-width: 370px) {
    .mb-advantage.mb-advantage-mob .mb-wrap:after {
        top: -1.2%;
    }
}