/* Единая форма заявки (customFeedbackForm + js/tw-feedback.js) */

.tw-form {
    position: relative;
}

.tw-form__field {
    display: flex;
    flex-direction: column;
}

.tw-form__field .form-input {
    margin-bottom: 15px;
}

/* Плашка ошибки: читается и на белом фоне, и поверх фотографии */
.tw-form__error {
    align-self: flex-start;
    margin: -8px 0 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #fff;
    color: #c5221f;
    font-size: 13px;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.tw-form__error[hidden] {
    display: none;
}

.tw-form .video-form-block__checkbox-label + .tw-form__error {
    margin-top: 6px;
}

.tw-form [data-error-for="form"] {
    margin: 12px 0 0;
}

.tw-form .form-input[aria-invalid="true"],
.tw-form .form-input[aria-invalid="true"]:not(:focus) {
    border-color: #d93025;
}

.tw-form .video-form-block__checkbox[aria-invalid="true"] {
    outline: 2px solid #d93025;
    outline-offset: 1px;
}

.tw-form__captcha {
    margin-bottom: 15px;
}

.tw-form__submit[disabled] {
    opacity: .7;
    cursor: wait;
}

/* Поле-ловушка для ботов: людям не видно, роботы заполняют */
.tw-form__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tw-form__success {
    padding: 20px;
    border-radius: var(--border-radius, 8px);
    background: #f1f8f1;
    color: #1e4620;
    font-size: 16px;
    line-height: 1.4;
}

.tw-form__success strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.tw-form__success p {
    margin: 0;
}
