/**
 * Стили для баннера формы сбора лидов
 * Соответствует дизайну сайта
 */

.opt-form-banner {
    /*margin: 30px 0;*/
    padding: 30px;
    background-image: url('/img/11.jpg');
    background-size: 150%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    position: relative;
    width: 56%;
    margin: 32px auto;
}

.opt-form-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.43);
    border-radius: 8px;
    z-index: 1;
}

.opt-form-banner__form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /*background: rgba(0, 0, 0, 0.9);*/
    /*padding: 30px;*/
    border-radius: 8px;
}

.opt-form-banner__header {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.opt-form-banner .input {
    margin-bottom: 25px;
}

.opt-form-banner .input:last-of-type {
    margin-bottom: 30px;
}

.opt-form-banner .input__title {
    font-weight: 700;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    /*margin: 0 0 15px 0;*/
    margin: 0;
}

.opt-form-banner .input__wrap {
    position: relative;
}

.input-text-wrap{
    background: white;
    color: black;
    width: 100%;
    font-size: 16px;
    padding: 14px;
    border-radius: 6px;
}


.opt-form-banner .input__text {
    background: white;
    width: 100%;
    font-weight: 400;
    font-size: 15px;
    line-height: 17px;
    padding: 10px 10px  10px 10px !important;
    border-radius: 8px !important;
    color: black;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    outline: none;
    transition: border-color 0.3s ease;
}

.opt-form-banner .input__text:focus {
    /*border-bottom-color: #3ed182;*/
}

.opt-form-banner .input__text:focus::-webkit-input-placeholder {
    color: rgba(35, 35, 35, 1) !important;
}

.opt-form-banner .input__text:focus:-moz-placeholder {
    color: rgba(80, 80, 80, 1) !important;
}

.opt-form-banner .input__text:focus::placeholder {
    color: rgba(80, 80, 80, 1) !important;
}

.opt-form-banner .input__text::-webkit-input-placeholder {
    font-weight: 400;
    font-size: 15px;
    line-height: 17px;
    color: rgba(80, 80, 80, 1) !important;
}

.opt-form-banner .input__text:-moz-placeholder {
    font-weight: 400;
    font-size: 15px;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.6);
}

.opt-form-banner .input__text::placeholder {
    font-weight: 400;
    font-size: 15px;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.6);
}

.opt-form-banner textarea.input__text {
    min-height: 40px;
    height: 56px;
    padding-top: 10px;
    resize: vertical;
}

.opt-form-banner .green__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #3ed182;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.opt-form-banner .green__btn:hover {
    background: #3de98d;
}

.opt-form-banner .green__btn:active {
    background: #179254;
}

.opt-form-banner .green__btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.opt-form-banner__message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    display: none;
}

.opt-form-banner__message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.opt-form-banner__message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .opt-form-banner {
        width: 100%;
        padding: 0;
        margin: 0;
        background-size: cover;
    }

    .opt-form-banner__form {
        max-width: 100%;
        padding: 15px;
    }
}

