/* Yandex SmartCaptcha в формах Contact Form 7 */

.mit-smartcaptcha-wrap {
    display: block;
    --mit-captcha-error-color: #dc3232;
}

.mit-smartcaptcha {
    max-width: 100%;
    border-radius: 11px;
    overflow: hidden;
}

.mit-smartcaptcha:not([data-invisible="true"]) {
    min-height: 102px;
}

.mit-smartcaptcha.wpcf7-not-valid {
    border: 2px solid #dc3232;
    border-radius: 11px;
}

.mit-smartcaptcha-wrap .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--mit-captcha-error-color);
}

/* Отступы и контраст подсказки в конкретных формах */
.form__line--captcha {
    margin: 14px 0 16px;
    max-width: 100%;
}

.coast-form .mit-smartcaptcha-wrap,
#order .mit-smartcaptcha-wrap {
    --mit-captcha-error-color: #ffd4cc;
}

#consultation .mit-smartcaptcha-wrap {
    --mit-captcha-error-color: #8c1414;
}

#consultation .mit-smartcaptcha-wrap .wpcf7-not-valid-tip {
    font-weight: 600;
}

#consultation .form__line--captcha {
    margin: 12px 0;
    max-width: 100%;
}

#order .mit-popup-captcha {
    margin-top: 16px;
    max-width: 340px;
}

/* Адаптация контейнеров форм под высоту/ширину виджета SmartCaptcha */
.coast-form-wrapper {
    height: auto;
    min-height: 780px;
}

@media (max-width: 600px) {
    .coast-form-wrapper {
        min-height: 0;
    }

    #order .mit-popup-captcha {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #consultation .popup__content {
        padding: 28px 18px;
    }
}
