/* ===== Форма заказа (BA Forms / CF7) — финальная версия ===== */

/* Контейнер формы: без фикс-высоты */
.com-baforms .ba-form {
    width: 100%;
    background: #fff;
    border-radius: 2px;
    box-sizing: border-box;
}

/* Строки */
.com-baforms .row-fluid.ba-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}
.com-baforms .row-fluid.ba-row > .span6 {
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}
.com-baforms .row-fluid.ba-row > .span12 {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    .com-baforms .row-fluid.ba-row > .span6 { width: 100%; }
}

/* Инструмент поля */
.com-baforms .ba-textInput,
.com-baforms .ba-email,
.com-baforms .ba-dropdown { margin: 0; }

.com-baforms .ba-textInput label,
.com-baforms .ba-email label,
.com-baforms .ba-dropdown label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: normal;
    color: rgba(51, 51, 51, 1);
}

/* ===== Обёртки CF7: ТОЛЬКО размеры, БЕЗ рамок/паддингов ===== */
.com-baforms .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    height: auto;
    box-sizing: border-box;
}

/* Обёртки submit/acceptance не растягиваем */
.com-baforms .wpcf7-form-control-wrap.submit,
.com-baforms .wpcf7-form-control-wrap.acceptance {
    display: inline-block;
    width: auto;
}

/* Обёртка input + иконка */
.com-baforms .container-icon {
    position: relative;
    display: block;
}

/* ===== Оформление НОСИМ НА ПОЛЯХ ===== */
.com-baforms .container-icon input,
.com-baforms .container-icon select {
    display: block;
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    font-size: 13px;
    color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(243, 243, 243, 1);
    border-radius: 2px;
    padding: 0 45px 0 12px;
    outline: none;
}
.com-baforms .container-icon input:focus,
.com-baforms .container-icon select:focus {
    border-color: rgba(168, 196, 27, 1) !important;
}

/* Select: своя стрелка вместо серой зоны */
.com-baforms .container-icon select {
    padding-right: 35px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Иконка справа внутри поля */
.com-baforms .icons-cell {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.com-baforms .icons-cell i {
    font-size: 24px;
    color: rgba(168, 196, 27, 1);
    line-height: 1;
}

/* Счётчик 0/11 */
.com-baforms .ba-maxlength {
    margin: 3px 0 0;
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* Чекбокс согласия — без серой рамки */
.com-baforms .ba-terms-conditions {
    display: flex;
    align-items: flex-start;
    margin: 5px 0 15px;
}
.com-baforms .ba-terms-conditions .wpcf7-acceptance,
.com-baforms .ba-terms-conditions .wpcf7-list-item,
.com-baforms .ba-terms-conditions .wpcf7-list-item-label {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
}
.com-baforms .ba-terms-conditions input[type="checkbox"] {
    margin: 3px 8px 0 0;
    width: auto;
    height: auto;
    border: 1px solid #ccc;
}
.com-baforms .terms-content {
    font-size: 13px;
    color: rgba(51, 51, 51, 1);
}
.com-baforms .terms-content a { color: #21759b; }

/* ===== Кнопка отправки ===== */
.com-baforms .ba-form-footer {
    text-align: center;
    margin-top: 10px;
}
.com-baforms .ba-form-footer .span12 { text-align: center; }
.com-baforms .ba-btn-submit,
.com-baforms input.wpcf7-submit {
    display: inline-block !important;
    width: 40%;
    min-width: 160px;
    max-width: 320px;
    height: 40px;
    padding: 0 20px;
    background-color: rgba(168, 196, 27, 1) !important;
    color: rgba(250, 250, 250, 1) !important;
    font-size: 14px;
    font-weight: normal;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}
.com-baforms .ba-btn-submit:hover { background-color: rgba(150, 175, 20, 1) !important; }
.com-baforms .wpcf7-spinner { display: none !important; }

/* Сообщения CF7 */
.com-baforms .wpcf7-response-output { margin: 10px 0; font-size: 13px; }
.com-baforms .wpcf7-not-valid-tip { color: #d00; font-size: 12px; }

.icons-cell p{margin-bottom:0px !important;}