body.b2bip-modal-open {
    overflow: hidden;
}

.b2bip-modal[hidden] {
    display: none;
}

.b2bip-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.b2bip-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 28, 0.56);
}

.b2bip-dialog {
    position: relative;
    z-index: 1;
    width: min(100% - 28px, 560px);
    margin: 5vh auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(7, 18, 37, 0.2);
}

.b2bip-dialog-inner {
    padding: 22px;
}

.b2bip-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #556274;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.b2bip-close:hover,
.b2bip-close:focus {
    background: rgba(13, 63, 144, 0.08);
    color: #0d3f90;
}

.b2bip-dialog h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.b2bip-subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f6f7f;
}

.b2bip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.b2bip-form label {
    display: block;
}

.b2bip-form span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #16314f;
}

.b2bip-form input,
.b2bip-form textarea {
    width: 100%;
    border: 1px solid #bfd0e2;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    box-sizing: border-box;
}

.b2bip-form textarea {
    min-height: 108px;
    resize: vertical;
}

.b2bip-block-field {
    margin-top: 12px;
}

.b2bip-actions {
    margin-top: 14px;
}

.b2bip-submit {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #0d3f90;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.b2bip-submit[disabled] {
    opacity: 0.75;
    cursor: wait;
}

.b2bip-feedback {
    margin-top: 10px;
    font-size: 13px;
}

.b2bip-feedback.is-success {
    color: #116b38;
}

.b2bip-feedback.is-error {
    color: #b42318;
}

.b2bip-honeypot {
    display: none;
}

@media (max-width: 760px) {
    .b2bip-dialog {
        width: calc(100% - 20px);
        margin: 2vh auto;
    }

    .b2bip-dialog-inner {
        padding: 18px 14px;
    }

    .b2bip-grid {
        grid-template-columns: 1fr;
    }
}
