.modal-box__content:has(#req-rep-section) {
    padding: 0;
    overflow: hidden;
}

.modal-box__content:has(#req-rep-section) h2#modalTitle {
    margin: 0;
}

.modal-box:has(#req-rep-section) {
    padding: 89px 20px 32px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.modal-box__content:has(#req-rep-section) .form-content {
    text-align: left;
}

.modal-box__content:has(#req-rep-section) .form-content .form-heading {
    color: #050D23;
    font-family: 'Inter-Semibold';
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: -0.5px;
    text-transform: capitalize;
    margin-bottom: 24px;
}

.modal-box__content:has(#req-rep-section) .form-content .form-info {
    color: #050D23;
    font-family: 'Inter-Regular';
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    padding: 0 0 32px;
    margin-bottom: 15px;
}

.modal-box__content:has(#req-rep-section) .form-content .form-info span.red-color {
    color: #a94442;
}

.modal-box__content:has(#req-rep-section) .form-content .form-info p:last-child {
    margin-top: 24px;
}

.modal.modal--visible:has(#req-rep-section) button.modal__close span.modal__closeIcon:after {
    top: unset;
    transform: unset;
    height: 23px;
    width: 25px;
    background-repeat: no-repeat;
    background-image: url(/content/dam/intelligentcontent/unbranded/pioneerhub/us/en/images/request-a-rep/mobile/close-white-icon.png);
    background-size: cover;
    position: relative;
    right: unset;
    background-position: center;
}

.modal.modal--visible:has(#req-rep-section) button.modal__close .modal__closeLabel {
    text-transform: uppercase;
    display: block;
    color: #FFF;
    font-family: 'Inter-Semibold';
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.modal.modal--visible:has(#req-rep-section) button.modal__close {
    display: flex;
    justify-content: flex-start;
    flex-direction: row-reverse;
    align-items: center;
    cursor: auto;
    top: -10px;
    right: 0;
}

.modal.modal--visible:has(#req-rep-section) button.modal__close>* {
    cursor: pointer;
}

/* Form starts */

.modal.modal--visible:has(form) {
    justify-content: unset;
    padding-top: 36px;
    overflow-y: hidden;
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-group.cmp-dynamicform__form-sectionheader {
    display: none;
}

.modal.modal--visible:has(form) .modal-box {
    text-align: left;
}

.modal.modal--visible:has(form) .cmp-dynamicform__generated-form {
    padding: 0;
}

.modal.modal--visible:has(form) label.cmp-dynamicform__control-label {
    color: #050D23;
    font-family: 'Inter-Semibold';
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

.modal.modal--visible:has(form) .cmp-dynamicform-v2 .cmp-dynamicform__form-label-container .text-danger {
    color: #9B30B3;
    font-family: 'Inter-Semibold';
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}


.modal.modal--visible:has(form) .cmp-dynamicform__generated-form .form-control:not(textarea) {
    opacity: 1;
    width: 100%;
    height: 32px;
    padding: 5px 12px;
    box-shadow: none;
    border: 1px solid #9DB0AC;
    margin-bottom: 15px;
    color: black;
    font-family: Arial;
    font-size: 13.33px;
    border-radius: 0;
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-label-container {
    margin-bottom: 5px;
}

.modal.modal--visible:has(form) .cmp-dynamicform-v2 .cmp-dynamicform__generated-form textarea {
    width: 100%;
    height: 32px;
}

.modal.modal--visible:has(form) .cmp-dynamicform-v2 .cmp-dynamicform__generated-form .cmp-dynamicform__form-textarea {
    margin: 33px 0 48px;
}

.modal.modal--visible:has(form) .g-recaptcha {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-group.button-group {
    margin: 32px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-infosection p,
.modal.modal--visible:has(form) .cmp-dynamicform__form-infosection a {
    color: inherit;
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-infosection a {
    text-decoration: underline;
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-group.button-group button {
    color: rgb(0, 126, 138);
    font-size: 15px;
    background-color: #FFF;
    padding: 14px 16px;
    border-radius: 6px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    font-family: 'Inter-Semibold';
    border: 1px solid rgb(0, 126, 138);
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-group.button-group button[type="submit"] {
    color: #FFF;
    font-size: 17px;
    background-color: rgb(0, 126, 138);
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-group.button-group button[type="submit"]:after {
    content: "Submit Request";
}

.modal.modal--visible:has(form) .cmp-dynamicform__form-group.button-group button[type="submit"]>span {
    display: none;
}

.modal.modal--visible:has(.cmp-dynamicform__generated-form.hidden) .form-info {
    display: none;
}

.modal.modal--visible:has(.cmp-dynamicform__generated-form.hidden) .modal-box {
    height: auto !important;
}

/* Form ends */

@media screen and (min-width:992px) {
    .modal-box:has(#req-rep-section) {
        max-width: 600px;
        padding: 89px 32px 32px;
        border-radius: 16px;
    }

    .modal.modal--visible:has(#req-rep-section) button.modal__close {
        max-width: 600px;
    }

    .modal.modal--visible:has(form) .g-recaptcha {
        justify-content: end;
    }

    .modal.modal--visible:has(form) .cmp-dynamicform__form-group.button-group {
        justify-content: end;
    }
}

@media screen and (max-width:991px) {
    .modal-box:has(#req-rep-section) {
        height: calc(100vh - 140px);
    }
}