.mb2b-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mb2b-quote-modal.is-open {
    display: flex;
}

.mb2b-quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
}

.mb2b-quote-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.mb2b-quote-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mb2b-quote-modal__header {
    width: calc(100% + 72px);
    margin: -36px -36px 28px;
    padding: 0;
}

.mb2b-quote-modal__header h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.mb2b-quote-modal__header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.mb2b-quote-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mb2b-quote-modal__field {
    margin-bottom: 20px;
}

.mb2b-quote-modal__grid .mb2b-quote-modal__field {
    margin-bottom: 0;
}

.mb2b-quote-modal__field label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.mb2b-quote-modal__field label span {
    color: #dc2626;
}

.mb2b-quote-modal__field input,
.mb2b-quote-modal__field select,
.mb2b-quote-modal__field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    padding: 12px 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mb2b-quote-modal__field textarea {
    min-height: 110px;
    resize: vertical;
}

.mb2b-quote-modal__field input:focus,
.mb2b-quote-modal__field select:focus,
.mb2b-quote-modal__field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mb2b-quote-modal__submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    padding: 13px 20px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mb2b-quote-modal__submit:hover {
    background: #1d4ed8;
}

.mb2b-quote-modal__submit:active {
    transform: translateY(1px);
}

body.mb2b-quote-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .mb2b-quote-modal {
        padding: 12px;
    }

    .mb2b-quote-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 28px 20px 22px;
        border-radius: 14px;
    }

    .mb2b-quote-modal__header {
        padding-right: 40px;
        margin-bottom: 22px;
    }

    .mb2b-quote-modal__header h2 {
        font-size: 24px;
    }

    .mb2b-quote-modal__header p {
        font-size: 14px;
    }

    .mb2b-quote-modal__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mb2b-quote-modal__grid .mb2b-quote-modal__field {
        margin-bottom: 20px;
    }

    .mb2b-quote-modal__close {
        top: 12px;
        right: 12px;
    }
}

/* Global Header logo inside Quote Modal */
.mb2b-quote-modal__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 18px 36px;
    box-sizing: border-box;
    border-radius: 18px 18px 0 0;
}

.mb2b-quote-modal__logo img {
    display: block;
    width: auto;
    height: 48px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .mb2b-quote-modal__logo {
        width: calc(100% + 40px);
        margin: -28px -20px 24px;
        padding: 16px 20px;
    }

    .mb2b-quote-modal__logo img {
        height: 38px;
    }
}

/* =========================================================
 * Quote Modal — Live Preview Parity
 * ========================================================= */

.mb2b-quote-modal__body {
    padding: 32px;
    box-sizing: border-box;
}

.mb2b-quote-modal__body h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.mb2b-quote-modal__body > p {
    margin: 0 0 24px;
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
}

.mb2b-quote-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mb2b-quote-modal__field label {
    display: block;
    margin-bottom: 7px;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.mb2b-quote-modal__field input,
.mb2b-quote-modal__field select,
.mb2b-quote-modal__field textarea {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    box-sizing: border-box;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    line-height: 1.4;
}

.mb2b-quote-modal__field textarea {
    min-height: 90px;
    resize: vertical;
}

.mb2b-quote-modal__submit {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.mb2b-quote-modal__logo {
    border-radius: 0;
}

.mb2b-quote-modal__logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

@media (max-width: 782px) {
    .mb2b-quote-modal__body {
        padding: 24px 20px;
    }

    .mb2b-quote-modal__grid {
        grid-template-columns: 1fr;
    }

    .mb2b-quote-modal__header {
        padding: 16px 20px;
    }
}


/* Quote Modal — final control alignment */

.mb2b-quote-modal__field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23111827' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 12px;
}

.mb2b-quote-modal__submit {
    display: block !important;
    width: 100% !important;
    min-height: 42px;
    margin-top: 22px;
    padding: 12px 18px;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 7px;
    background: #111827;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
}

