/* ============================================================
   Inquiry Modal — Split Layout
   ============================================================ */

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

.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(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mb2b-quote-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    height: min(860px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.25);
}

.mb2b-quote-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    height: 100%;
    min-height: 0;
}

/* ============================================================
   Visual
   ============================================================ */

.mb2b-quote-modal__visual {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #ffffff;
}

.mb2b-quote-modal__visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-position: center;
}

.mb2b-quote-modal__visual--dynamic
.mb2b-quote-modal__visual-image {
    object-fit: cover;
}

.mb2b-quote-modal__visual--static
.mb2b-quote-modal__visual-image {
    object-fit: contain;
    background: transparent;
}

.mb2b-quote-modal__visual-image[src=""] {
    display: none;
}

.mb2b-quote-modal__visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.04) 25%,
            rgba(15, 23, 42, 0.78) 100%
        );
}

.mb2b-quote-modal__visual-content {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    z-index: 2;
    color: #ffffff;
}

.mb2b-quote-modal__visual-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #62d8f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mb2b-quote-modal__visual-title {
    display: block;
    max-width: 420px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

/* ============================================================
   Modal Header / Logo
   ============================================================ */

.mb2b-quote-modal__header {
    display: flex;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    padding: 20px 32px;
}

.mb2b-quote-modal__logo {
    display: flex;
    align-items: center;
    max-width: 100%;
}

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

/* ============================================================
   Split Layout — Compact Header
   ============================================================ */

.mb2b-quote-modal__dialog--split .mb2b-quote-modal__header {
    min-height: 82px !important;
    padding: 10px 32px;
}

.mb2b-quote-modal__dialog--split .mb2b-quote-modal__logo {
    width: 135px !important;
}

/* ============================================================
   Content
   ============================================================ */

.mb2b-quote-modal__content {
    position: relative;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 34px 24px;
    background: #ffffff;
}

.mb2b-quote-modal__intro {
    margin-bottom: 14px;
    padding-right: 30px;
}

.mb2b-quote-modal__intro h2 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.mb2b-quote-modal__intro p {
    margin: 0;
    max-width: 600px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

/* ============================================================
   Close
   ============================================================ */

.mb2b-quote-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.mb2b-quote-modal__close:hover {
    color: #0879d1;
    border-color: #bfdbfe;
    background: #ffffff;
    transform: translateY(-1px);
}

/* ============================================================
   Form
   ============================================================ */

.mb2b-quote-modal__form {
    margin: 0;
}

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

.mb2b-quote-modal__field {
    min-width: 0;
}

.mb2b-quote-modal__field label {
    display: block;
    margin: 0 0 7px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

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

.mb2b-quote-modal__field input,
.mb2b-quote-modal__field select,
.mb2b-quote-modal__field textarea {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mb2b-quote-modal__field input,
.mb2b-quote-modal__field select {
    height: 42px;
    padding: 0 13px;
}

.mb2b-quote-modal__field textarea {
    min-height: 72px;
    padding: 10px 13px;
    resize: vertical;
}

.mb2b-quote-modal__field input::placeholder,
.mb2b-quote-modal__field textarea::placeholder {
    color: #94a3b8;
}

.mb2b-quote-modal__field input:hover,
.mb2b-quote-modal__field select:hover,
.mb2b-quote-modal__field textarea:hover {
    border-color: #cbd5e1;
}

.mb2b-quote-modal__field input:focus,
.mb2b-quote-modal__field select:focus,
.mb2b-quote-modal__field textarea:focus {
    border-color: #0879d1;
    box-shadow: 0 0 0 3px rgba(8, 121, 209, 0.09);
}

.mb2b-quote-modal__field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 16px) 19px,
        calc(100% - 11px) 19px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

/* ============================================================
   Submit
   ============================================================ */

.mb2b-quote-modal__submit {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px;
    margin-top: 14px;
    padding: 10px 20px;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 10px;
    background: var(
        --mb2b-quote-button-background,
        #111827
    ) !important;
    color: var(
        --mb2b-quote-button-text,
        #ffffff
    ) !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.mb2b-quote-modal__submit:hover {
    background: var(
        --mb2b-quote-button-background,
        #111827
    ) !important;
    color: var(
        --mb2b-quote-button-text,
        #ffffff
    ) !important;
    filter: brightness(0.94);
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(15, 23, 42, 0.18);
}

.mb2b-quote-modal__submit:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

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

.mb2b-quote-modal__submit > span {
    color: inherit !important;
}

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

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 767px) {

    .mb2b-quote-modal {
        padding: 10px;
    }

    .mb2b-quote-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 20px;
    }

    .mb2b-quote-modal__layout {
        display: block;
        min-height: 0;
        max-height: none;
    }

    .mb2b-quote-modal__visual {
        height: 190px;
        min-height: 190px;
    }

    .mb2b-quote-modal__visual-content {
        left: 22px;
        right: 22px;
        bottom: 20px;
    }

    .mb2b-quote-modal__visual-title {
        font-size: 19px;
    }

   .mb2b-quote-modal__content {
        max-height: calc(100vh - 210px);
        padding: 27px 20px 24px;
    }

    .mb2b-quote-modal__intro {
        padding-right: 34px;
        margin-bottom: 22px;
    }

    .mb2b-quote-modal__intro h2 {
        font-size: 27px;
    }

    .mb2b-quote-modal__intro p {
        font-size: 13px;
    }

    .mb2b-quote-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        background: rgba(15, 23, 42, 0.55);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff;
    }

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

    .mb2b-quote-modal__grid .mb2b-quote-modal__field:last-child {
        grid-column: auto;
    }

    .mb2b-quote-modal__submit {
        margin-top: 20px;
    }
}

