.contacts-feedback-form {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

#vpl_contacts_form > form,
#vpl_contacts_form > form > fieldset.lineBox {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

#vpl_contacts_form input[type="text"],
#vpl_contacts_form input[type="email"],
#vpl_contacts_form input[type="tel"],
#vpl_contacts_form textarea,
#vpl_contacts_form select,
#vpl_contacts_form .sbHolder {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

#vpl_contacts_form textarea {
    min-height: 140px;
    resize: vertical;
}

.contacts-feedback-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    border: 0;
}

.contacts-feedback-form__consent input[type="checkbox"] {
    display: block !important;
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    margin: 2px 0 0 !important;
    opacity: 1 !important;
    appearance: auto !important;
}

.contacts-feedback-form__consent-text {
    color: #444;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.45;
}

.contacts-feedback-form__link,
.contacts-feedback-form__consent-text a {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    color: #1675b9;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.contacts-feedback-form__link:hover,
.contacts-feedback-form__link:focus-visible,
.contacts-feedback-form__consent-text a:hover,
.contacts-feedback-form__consent-text a:focus-visible {
    text-decoration: underline;
}

#vpl_contacts_form input[type="submit"],
#vpl_contacts_form button[type="submit"] {
    min-width: 220px;
    min-height: 48px;
}

#vpl_contacts_form input[type="submit"][disabled],
#vpl_contacts_form button[type="submit"][disabled] {
    border-color: #d9d9d9 !important;
    color: #b8b8b8 !important;
    background: #eeeeee !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.65;
}

#vpl_contacts_form .errortext {
    display: block;
    margin: 0 0 16px;
    color: #d71920 !important;
    font-size: 14px;
    line-height: 1.4;
}

#vpl_contacts_form .contacts-feedback-form__success {
    display: block;
    margin: 0 0 16px;
    color: #27863a;
    font-size: 14px;
    line-height: 1.4;
}

.contacts-consent-is-open {
    overflow: hidden;
}

.contacts-consent-modal[hidden] {
    display: none;
}

.contacts-consent-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.contacts-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.contacts-consent-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.contacts-consent-modal__dialog h2 {
    margin: 0 40px 20px 0;
    font-size: 26px;
    line-height: 1.2;
}

.contacts-consent-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #777f8c;
    font-size: 26px;
    line-height: 32px;
    cursor: pointer;
}

.contacts-consent-modal__content {
    max-height: calc(100vh - 230px);
    padding-right: 12px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.45;
}

.contacts-consent-modal__content p:first-child {
    margin-top: 0;
}

.contacts-consent-modal__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.contacts-consent-modal__buttons button {
    min-width: 150px;
    padding: 12px 20px;
    border: 0;
    border-radius: 24px;
    color: #fff;
    background: #777f8c;
    cursor: pointer;
}

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

    .contacts-consent-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 22px 18px;
    }

    .contacts-consent-modal__dialog h2 {
        font-size: 20px;
    }

    .contacts-consent-modal__content {
        max-height: calc(100vh - 220px);
        font-size: 13px;
    }

    .contacts-consent-modal__buttons {
        flex-direction: column;
    }

    .contacts-consent-modal__buttons button {
        width: 100%;
    }
}
