/*
 * Modern Style Pro — registration Compact V2 — reduced-height refinement (38px desktop / 44px mobile).
 * This file is loaded only by modernstyle_b2b_account_create.
 * No changes to login, invite activation, catalog or checkout layouts.
 */

body.modernstyle-pro-register-page .ms-pro-apply__form {
    padding: 30px 32px !important;
}

body.modernstyle-pro-register-page .ms-pro-form-section {
    margin: 0 0 22px !important;
    padding: 0 0 22px !important;
}

body.modernstyle-pro-register-page .ms-pro-form-section__heading {
    gap: 12px !important;
    margin-bottom: 16px !important;
}

body.modernstyle-pro-register-page .ms-pro-form-section__heading > span {
    min-width: 32px;
    width: 32px;
    height: 32px;
}

body.modernstyle-pro-register-page .ms-pro-form-section__heading h2 {
    font-size: clamp(20px, 2vw, 22px) !important;
    line-height: 1.2;
    margin: 0 0 4px !important;
}

body.modernstyle-pro-register-page .ms-pro-form-section__heading p {
    font-size: 12px;
    line-height: 1.4;
}

body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 16px !important;
}

body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid .ms-pro-field {
    min-width: 0;
    margin: 0 !important;
}

body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid .ms-pro-field label {
    margin: 0 0 4px !important;
    font-size: 10px;
    line-height: 1.3;
}

body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid .ms-pro-field input:not([type="checkbox"]),
body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid .ms-pro-field select {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 14px !important;
    line-height: 1.4;
    padding: 0 12px !important;
}

body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-apply__terms {
    padding: 0 0 20px !important;
}

body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-apply__marketing-consent {
    margin-top: 13px;
}

@media (max-width: 680px) {
    body.modernstyle-pro-register-page .ms-pro-apply__form {
        padding: 22px 18px !important;
    }

    body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-field--wide {
        grid-column: auto !important;
    }

    body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid .ms-pro-field input:not([type="checkbox"]),
    body.modernstyle-pro-register-page .ms-pro-apply__form .ms-pro-form-grid .ms-pro-field select {
        height: 44px !important;
        min-height: 44px !important;
    }

    body.modernstyle-pro-register-page .ms-pro-form-section {
        margin-bottom: 18px !important;
        padding-bottom: 18px !important;
    }

    body.modernstyle-pro-register-page .ms-pro-form-section__heading {
        margin-bottom: 14px !important;
    }
}
