﻿  /* ====================== ФОРМА ДОБАВЛЕНИЯ В ГОСТЕВУЮ КНИГУ ====================== */

.commTable {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.commTd1 {
    background: #f8fafc;
    padding: 14px 18px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    width: 15%;
    min-width: 130px;
}

.commTd2 {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.commTd2:last-child {
    border-bottom: none;
}

/* Поля ввода */
.commTd2 input[type="text"],
.commTd2 input[type="email"],
.commTd2 textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}

.commTd2 input[type="text"]:focus,
.commTd2 input[type="email"]:focus,
.commTd2 textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Текстовое поле для сообщения */
.commTd2 textarea {
    min-height: 160px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* BB-коды и смайлы */
.commTd2 div[style*="padding-bottom"] {
    margin-bottom: 8px;
}

/* Кнопка отправки */
.commSbmFl {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.commSbmFl:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

.commSbmFl:active {
    transform: translateY(0);
}

/* CAPTCHA */
.commTd2 img {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-top: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .commTable {
        border-radius: 8px;
    }
    
    .commTd1 {
        width: 100%;
        text-align: left;
        padding: 12px 16px;
    }
    
    .commTd1,
    .commTd2 {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .commTd2 {
        padding-top: 0;
    }
}