/* ========================================
   ФОРМА - HONEYPOT ЗАЩИТА
   ======================================== */

/* Honeypot - скрытое поле (невидимо для пользователей, видимо для ботов) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1;
    display: none !important;
}

/* ========================================
   ИСПРАВЛЕНИЕ DISPLAY ДЛЯ FORM
   ======================================== */

form.form-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    margin: 24px 0 !important;
    width: 98% !important;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО ПОДТВЕРЖДЕНИЯ
   ======================================== */

.success-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease;
    position: relative;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #23c55e;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    animation: scaleIn 0.5s ease 0.2s backwards;
}

.success-modal-content h3 {
    font-size: 28px;
    color: #444;
    margin-bottom: 15px;
}

.success-modal-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.success-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.success-close:hover {
    color: #333;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .success-modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .success-modal-content h3 {
        font-size: 24px;
    }
}

/* ========================================
   ФИКС ДЛЯ КНОПКИ В МОДАЛЬНОЙ ФОРМЕ
   ======================================== */

.contact-form .subm-btn {
    background: #1E88E5;
    color: #ffffff;
    width: 100%;
    height: 56px;
    border-radius: 12px;
    font-size: 26px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.contact-form .subm-btn:hover {
    background: #0d6efd;
}

.contact-form .subm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.contact-form .subm-btn p {
    color: #ffffff;
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 56px;
}

/* Стили для обязательных полей */
.contact-form input:required,
.contact-form textarea:required {
    border-left: 3px solid #1E88E5;
}

/* Убираем красную рамку при валидации */
.contact-form input:invalid {
    border-color: #cccddd;
}

.contact-form input:valid {
    border-color: #23c55e;
    border-left: 3px solid #23c55e;
}

.contact-form textarea:valid {
    border-color: #23c55e;
    border-left: 3px solid #23c55e;
}
