/* Property valuation section. Scoped to prevent changes to existing forms. */
.mb-valuation {
    --mbv-gold: #C49A42;
    --mbv-champagne: #E5C477;
    --mbv-cream: #FAF7F0;
    --mbv-ivory: #FFFCF7;
    background: #17191A;
    color: var(--mbv-cream);
    padding: clamp(65px, 7vw, 105px) 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.mb-valuation *,
.mb-valuation *::before,
.mb-valuation *::after {
    box-sizing: border-box;
}

.mb-valuation__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: clamp(35px, 6vw, 110px);
    width: min(100%, 1280px);
    margin-inline: auto;
}

.mb-valuation__intro {
    padding-top: clamp(12px, 3vw, 50px);
}

.mb-valuation__eyebrow,
.mb-valuation__form-eyebrow {
    color: var(--mbv-champagne);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.mb-valuation__intro h2 {
    max-width: 570px;
    margin: 23px 0 24px;
    color: var(--mbv-cream);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 4.1vw, 63px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mb-valuation__line {
    width: 76px;
    height: 1px;
    margin: 0 0 26px;
    background: var(--mbv-gold);
}

.mb-valuation__intro > p {
    max-width: 510px;
    margin: 0 0 19px;
    color: rgba(250, 247, 240, .86);
    font-size: 17px;
    line-height: 1.8;
}

.mb-valuation__note {
    display: grid;
    gap: 9px;
    max-width: 520px;
    margin-top: 35px;
    padding: 23px 0 0 24px;
    border-top: 1px solid rgba(196, 154, 66, .45);
    border-left: 2px solid var(--mbv-gold);
}

.mb-valuation__note strong {
    color: var(--mbv-champagne);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    font-weight: 400;
}

.mb-valuation__note span {
    color: rgba(250, 247, 240, .84);
    font-size: 15px;
    line-height: 1.75;
}

.mb-valuation__form-card {
    min-width: 0;
    padding: clamp(26px, 3vw, 45px);
    border: 1px solid var(--mbv-gold);
    border-radius: 8px;
    background: var(--mbv-ivory);
    color: #181818;
}

.mb-valuation__form-eyebrow {
    color: #A8781A;
    font-size: 11px;
}

.mb-valuation__form-card h3 {
    margin: 13px 0 10px;
    color: #171717;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 2.6vw, 40px);
    font-weight: 400;
    line-height: 1.18;
}

.mb-valuation__form-intro {
    margin: 0 0 25px;
    color: #55504A;
    font-size: 14px;
    line-height: 1.65;
}

.mb-valuation__form {
    gap: 14px;
}

.mb-valuation__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mb-valuation__row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mb-valuation__form .mb-contact__field {
    min-width: 0;
}

.mb-valuation__form .mb-contact__field input,
.mb-valuation__form .mb-contact__field select,
.mb-valuation__form .mb-contact__field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #BEB4A4;
    border-radius: 4px;
    background: #FFFFFF;
    color: #151515;
    box-shadow: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.mb-valuation__form .mb-contact__field textarea {
    min-height: 118px;
}

.mb-valuation__form .mb-contact__field input:focus,
.mb-valuation__form .mb-contact__field select:focus,
.mb-valuation__form .mb-contact__field textarea:focus {
    outline: 2px solid rgba(196, 154, 66, .52);
    outline-offset: 0;
    border-color: #A8781A;
}

.mb-valuation__form .mb-contact__submit {
    justify-self: stretch;
    width: 100%;
    margin-top: 7px;
}

@media (max-width: 1000px) {
    .mb-valuation__inner {
        grid-template-columns: 1fr;
        gap: 42px;
        max-width: 720px;
    }

    .mb-valuation__intro {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .mb-valuation {
        padding: 60px 20px;
    }

    .mb-valuation__row--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-valuation__row--three .mb-contact__field:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .mb-valuation__row {
        grid-template-columns: 1fr;
    }

    .mb-valuation__row--three .mb-contact__field:last-child {
        grid-column: auto;
    }
}
