.modal-form {
    display: none;
}
.modal-success {
    text-align: center;
    padding: 20px;
}
.success-message__text {
    font-size: 18px;
    margin-bottom: 20px;
}
.success-ok-button {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 165%;
    letter-spacing: 0.01em;
    color: var(--text-invert);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface-brand);
    width: 100%;
    border: unset;
}
.form-error.general-error {
    color: #d32f2f;
    background: #ffebee;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f44336;
}
.success-message {
    text-align: center;
}

.modal-body .block-filter .custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
}

.modal-body .select-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 30px;
    display:none;
    z-index: 10;
}

.select-clear:hover {
    color: #666;
}

.select-input {
    padding-right: 30px !important; /* Место для крестика */
}
.modal-body .block-filter .select-input {
    max-height: 52px;
    line-height: 52px;
    border-radius: 16px;
}

.modal-body input::placeholder {
    color: var(--text-tertiary);
    font-weight: normal;
}

.make-appointment .content .form .field .field-control textarea {
    background: var(--surface-level-1);
    border: 1px solid var(--color-grayscale-40);
    border-radius: 16px;
    padding: 19px 56px 5px 16px;
    width:100%;
    height: 200px;
}
.make-appointment .content .form .field.no-flex {
    display: block;
}
.make-appointment .content .form .field.no-flex .title {
    margin: 10px 0 8px 19px;
}
.nalog-form label.upload {
    width: 100%;
}
.nalog-form .custom-file {
    display: flex;
    flex-direction: column;
}
.nalog-form .custom-file-message {
    margin: 12px 0;
}
.nalog-form .c-checkbox input {
    visibility: initial;
}
.nalog-form input.readonly {
    color: var(--text-tertiary);
    background: var(--surface-grey);
    cursor: not-allowed;
    border-color: transparent;
    pointer-events: none;
}
.select-dropdown.active li.disabled {
    display: none;
}
.modal-close.popup-close {
    float: right;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 34px;
    height: 34px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}




[data-page-type=feedback_form] {
    position: relative
}

[data-page-type=feedback_form] form {
    position: relative;
    border-radius: 8px;
    padding: 40px
}

@media (max-width:767px) {
    [data-page-type=feedback_form] form {
        padding: 25px 18px
    }
}

[data-page-type=feedback_form] h2 {
    text-align: center;
    color: #333638;
    margin-bottom: 5px
}
[data-page-type=feedback_form] h3 {
    padding: 0;
    text-align: center;
    color: #333638;
}

[data-page-type=feedback_form] .close_icon,
[data-page-type=feedback_form] .close_icon_mobile {
    display: none
}

[data-page-type=feedback_form] p,
[data-page-type=feedback_form] div {
    letter-spacing: .01em;
    line-height: 24px;
    text-align: center;
    color: #555
}

[data-page-type=feedback_form] p a,
[data-page-type=feedback_form] div a {
    color: #555;
    white-space: nowrap
}

[data-page-type=feedback_form] .form_fields_wrapper {
    /*display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: flex-start;*/
    padding: 30px 0 0 0
}

@media (max-width:1024px) {
    [data-page-type=feedback_form] .form_fields_wrapper {
        max-width: 580px;
        padding-top: 20px;
        margin: 0 auto
    }
}

@media (max-width:767px) {
    [data-page-type=feedback_form] .form_fields_wrapper {
        flex-direction: column
    }
}

[data-page-type=feedback_form] input[type=text],
[data-page-type=feedback_form] input[type=tel],
[data-page-type=feedback_form] input[type=email],
[data-page-type=feedback_form] input[type=date]
{
    /*width: 280px;*/
    width:100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #dadee1;
    box-sizing: border-box;
    box-shadow: inset 0 2px 2px rgba(118, 125, 134, .1);
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .02em;
    padding: 18px 8px 8px 8px;
    margin: 0 20px 16px 0
}

@media (max-width:767px) {
    [data-page-type=feedback_form] input[type=text],
    [data-page-type=feedback_form] input[type=tel],
    [data-page-type=feedback_form] input[type=email] {
        width: 100%;
        margin: 0 0 20px 0
    }
}

@media (max-width:1024px) {
    [data-page-type=feedback_form] input[type=tel] {
        margin-right: 0
    }
}

[data-page-type=feedback_form] .input_wrapper {
    position: relative;
    display: block
}

@media (max-width:767px) {
    [data-page-type=feedback_form] .input_wrapper {
        width: 100%
    }
}

[data-page-type=feedback_form] .input_wrapper span {
    position: absolute;
    top: 15px;
    left: 8px;
    opacity: .6;
    visibility: hidden;
    transition: .3s;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .02em
}

[data-page-type=feedback_form] .input_wrapper input:-moz-placeholder-shown~span {
    visibility: visible
}

[data-page-type=feedback_form] .input_wrapper input:placeholder-shown~span {
    visibility: visible
}

[data-page-type=feedback_form] .input_wrapper input:-moz-placeholder-shown:focus~span,
[data-page-type=feedback_form] .input_wrapper input:not(:-moz-placeholder-shown)~span {
    top: 4px;
    opacity: 1;
    visibility: visible;
    font-size: 10px;
    line-height: 14px
}

[data-page-type=feedback_form] .input_wrapper input:not(:placeholder-shown)~span,
[data-page-type=feedback_form] .input_wrapper input:placeholder-shown:focus~span {
    top: 4px;
    opacity: 1;
    visibility: visible;
    font-size: 10px;
    line-height: 14px
}

[data-page-type=feedback_form] .submit_wrapper {
    width: 100%;
}

@media (max-width:1024px) {
    [data-page-type=feedback_form] .submit_wrapper {
        display: flex;
        width: 100%;
        margin-top: 10px
    }
}

@media (max-width:767px) {
    [data-page-type=feedback_form] .submit_wrapper {
        flex-direction: column;
        margin-top: 0
    }
}

[data-page-type=feedback_form] .submit_wrapper [data-page-type=feedback_form]  .checkbox_item.form_policy .checkbox_pseudo::before {
    top: 50%;
    transform: translateY(-50%)
}

[data-page-type=feedback_form] .submit_wrapper [data-page-type=feedback_form]  .checkbox_item.form_policy .checkbox_pseudo::after {
    top: 50%;
    transform: translateY(-50%)
}

[data-page-type=feedback_form] input[type="checkbox"]:checked .checkbox_pseudo:after {
    display: block;
}

[data-page-type=feedback_form] .submit_wrapper p {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: .02em;
    color: #373737;
    text-align: left
}

[data-page-type=feedback_form] button._button {
    /*display: flex;
    align-items: center;
    justify-content: center;*/
    width: 100%;
    max-width: 280px;
    height: 48px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .02em;
    padding: 12px;
    margin-bottom: 10px
}

@media (max-width:1024px) {
    [data-page-type=feedback_form] button._button {
        margin-right: 20px;
        margin-bottom: 0
    }
}

@media (max-width:767px) {
    [data-page-type=feedback_form] button._button {
        max-width: none;
        margin-right: 0;
        margin-bottom: 20px
    }
}

[data-page-type=feedback_form] .recall_form_successful_send {
    position: relative;
    top: 0;
    width: 390px;
    padding: 48px 40px 48px 40px;
    background: #fff;
    border-radius: 8px;
    text-align: center
}

[data-page-type=feedback_form] .recall_form_successful_send._in_content_block {
    position: absolute;
    left: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .9)
}

[data-page-type=feedback_form] .recall_form_successful_send h3 {
    color: #333638
}

[data-page-type=feedback_form] .recall_form_successful_send p {
    line-height: 24px;
    letter-spacing: .01em
}

[data-page-type=feedback_form] .recall_form_successful_send .close_icon_mobile span {
    cursor: pointer;
    position: relative;
    border-bottom: 1px dashed rgba(120, 47, 64, .4);
    line-height: 24px;
    letter-spacing: .01em;
    color: #333638
}

[data-page-type=feedback_form] .recall_form_successful_send .close_icon_mobile span:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -28px;
    width: 24px;
    height: 24px;
    background: url(/img/close_icon_black.svg);
    background-size: contain
}

[data-page-type=feedback_form] .recall_form_successful_send .close_icon,
[data-page-type=feedback_form] .recall_form_successful_send .close_icon_mobile {
    display: block
}

@media (max-width:1440px) and (min-width:768px) {
    [data-page-type=feedback_form] {
        padding: 48px 16px 0 16px
    }
}

@media (max-width:767px) {
    [data-page-type=feedback_form] .recall_form_successful_send {
        width: 288px;
        padding: 40px 12px 32px 12px
    }
}

@media (max-width:489px) {
    [data-page-type=feedback_form] p:first-of-type {
        width: 100%
    }
}


[data-page-type=feedback_form]  .checkbox_item.form_policy .checkbox_pseudo {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
    padding-left: 30px;
}

[data-page-type=feedback_form]  .checkbox_item.form_policy .checkbox_pseudo::before {
    top: 0;
}

[data-page-type=feedback_form]  .checkbox_item.form_policy .checkbox_pseudo::after {
    top: 6px;
}

[data-page-type=feedback_form]  .checkbox_item.form_policy .personalData._invalid~.checkbox_pseudo::before {
    border-color: #df0c0c;
}

[data-page-type=feedback_form]  .checkbox_item._active .checkbox_pseudo:after {
    display: block;
}

[data-page-type=feedback_form]  .checkbox_item input {
    display: none;
}

[data-page-type=feedback_form]  .checkbox_item .checkbox_pseudo {
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    position: relative;
    cursor: pointer;
}

[data-page-type=feedback_form]  .checkbox_item .checkbox_pseudo::before {
    box-sizing: border-box;
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 0;
    top: 4px;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    background-position: 0 0;
    background-color: #fff;
}

[data-page-type=feedback_form]  .checkbox_item .checkbox_pseudo::after {
    content: "";
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M3.707 7.121L0 3.414L1.414 2L3.707 4.293L8 0L9.414 1.414L3.707 7.121Z' fill='%23333638'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    width: 10px;
    height: 8px;
    top: 8px;
    left: 6px;
    display: none;
}

[data-page-type=feedback_form]  .checkbox_item input:checked + .checkbox_pseudo::after,
[data-page-type=feedback_form]  .checkbox_item input:checked ~ .checkbox_pseudo::after {
    display: block;
}


.custom-select {
    position: relative;
    width: 100%;
    /*max-width: 320px;*/
    font-size: 14px;
    user-select: none;
    margin: 0 20px 16px 0;
}

.custom-select__trigger {
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #dadee1;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    color: #555;
    transition: border-color 0.2s;
}

.custom-select__trigger:hover {
    border-color: #999;
}

.custom-select__trigger:focus-visible {
    outline: 2px solid #2a7;
    outline-offset: 2px;
}

/*
.custom-select._open .custom-select__trigger {
    border-color: #2a7;
}
*/

.custom-select__arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.custom-select._open .custom-select__arrow {
    transform: rotate(180deg);
}

.custom-select__value._placeholder {
    color: #999;
}

.custom-select__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #c4c4c4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.custom-select._open .custom-select__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select__option::marker {
    content: '';
}

.custom-select__option::before {
    content: none;
}

.custom-select__option {
    padding: 8px 14px;
    cursor: pointer;
    transition: background-color 0.15s;
    list-style: none;
    text-align: left;
}

.custom-select__option:hover,
.custom-select__option._focused {
    background: #f0f8f4;
}

.custom-select__option._selected {
    color: #2a7;
    font-weight: 500;
}

.custom-select__option._selected::after {
    content: "✓";
    float: right;
}