/* ========== SMART FORMS - GARDA THEME ========== */
/* Адаптирован под цвета и шрифты темы Двери Гарда */

.smart-form {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Заголовок формы */
.smart-form h3 {
    display: none;
}

/* Группы полей */
.form-field {
    margin-bottom: 12px;
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #8c8c8c;
    font-size: 13px;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.form-field .required {
    color: var(--color-primary, #e60000);
    margin-left: 3px;
    font-weight: 600;
}

/* Поля ввода */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dddddd;
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #ffffff;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    height: 35px;
    margin: 0;
    font-weight: 400;
}

.form-field textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
    padding: 8px 10px;
}

/* Фокус */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #e60000);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

/* Select */
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 25px;
    cursor: pointer;
}

/* Описание поля */
.field-description {
    font-size: 12px;
    color: #8c8c8c;
    margin-top: -2px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-style: normal;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

/* Кнопка отправки */
.form-submit {
    margin-top: 15px;
    text-align: center;
}

.submit-btn {
    background: var(--color-primary, #e60000);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    text-align: center;
}

.submit-btn:hover {
    background: var(--color-primary-dark, #c00000);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.15));
}

.submit-btn:active {
    background: #b00000;
}

.submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    font-weight: 400;
}

/* Сообщения */
.form-message {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm, 6px);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid transparent;
    font-family: 'Montserrat', sans-serif;
}

.form-message.success {
    background: #f0f9f0;
    color: #2d682d;
    border-color: #c3e6c3;
}

.form-message.success strong {
    color: #2d682d;
    font-weight: 600;
}

.form-message.error {
    background: #fdf2f2;
    color: #9b2c2c;
    border-color: #fbd5d5;
}

.form-message.error strong {
    color: #9b2c2c;
    font-weight: 600;
}

/* Ошибки в полях */
.field-error {
    border-color: var(--color-primary, #e60000) !important;
    background: #fff5f5 !important;
}

.field-error-message {
    color: var(--color-primary, #e60000);
    font-size: 11px;
    margin-top: 3px;
    font-weight: 400;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

/* Адаптивность */
@media (max-width: 768px) {
    .smart-form h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .form-field {
        margin-bottom: 10px;
    }

    .form-field label {
        font-size: 12px;
    }

    .form-field input[type="text"],
    .form-field input[type="email"],
    .form-field input[type="tel"],
    .form-field input[type="url"],
    .form-field input[type="number"],
    .form-field select,
    .form-field textarea {
        padding: 7px 9px;
        font-size: 12px;
        height: 32px;
    }

    .form-field textarea {
        min-height: 70px;
    }

    .submit-btn {
        padding: 9px 15px;
        font-size: 13px;
    }

    .form-message {
        font-size: 12px;
        padding: 7px 9px;
    }
}

/* Особая форма "Нашли дешевле?" */
.smart-form-cheaper .field-description {
    background: #f8f9fa;
    border-left: 2px solid var(--color-primary, #e60000);
    padding: 8px 10px;
    margin-bottom: 10px;
    font-style: normal;
    color: #666;
    font-weight: 300;
    font-size: 12px;
}

/* Скрытые поля */
.form-field input[type="hidden"] {
    display: none;
}

/* Ховер эффекты */
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: #cccccc;
}

/* Плейсхолдеры */
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
    opacity: 1;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
}

/* Антиспам-поле: невидимо для посетителя, доступно обработчику формы. */
.smart-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
