/* Контейнер формы */
.tb-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 4px;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    font-family: sans-serif;
}

.tb-form-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: none;
}

/* Элементы ввода */
.tb-ajax-form input[type="text"],
.tb-ajax-form input[type="tel"],
.tb-ajax-form input[type="email"],
.tb-ajax-form select,
.tb-ajax-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 2px;
    background: #FFF;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Фокус полей ввода в новом синем цвете */
.tb-ajax-form input:focus, 
.tb-ajax-form select:focus, 
.tb-ajax-form textarea:focus {
    border-color: #3762b1;
}

/* Кнопка отправки формы */
.tb-submit-btn {
    width: 100%;
    background: #3762b1;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tb-submit-btn:hover {
    background: #284c8c; /* При наведении — глубокий синий */
}

.tb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Ответы */
.tb-form-response {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}
.tb-success { color: green; }
.tb-error { color: red; }

/* Всплывающее Toast-уведомление */
.tb-toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #3762b1;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px 24px;
    position: fixed;
    z-index: 999999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, bottom 0.3s;
    opacity: 0;
}

.tb-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.tb-toast-error {
    background-color: #d63636 !important;
}

/* Кнопки "Заказать проект" в каталоге и карточке WooCommerce */
.tb-open-popup-btn, 
button.tb-open-popup-btn {
    display: inline-block;
    background-color: #3762b1 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
    outline: none !important;
}

.tb-open-popup-btn:hover, 
button.tb-open-popup-btn:hover {
    background-color: #284c8c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.tb-open-popup-btn:active, 
button.tb-open-popup-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Стили для конструктора полей в админке */
.tb-fields-constructor-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.tb-fields-constructor-table th, 
.tb-fields-constructor-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.tb-fields-constructor-table th {
    background: #f9f9f9;
}