/* Стили для формы обратной связи в общем стиле страницы */
.mfeedback {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 0 auto;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.mfeedback form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mfeedback .mf-name,
.mfeedback .mf-email,
.mfeedback .mf-phone,
.mfeedback .mf-message,
.mfeedback .mf-captcha {
    display: flex;
    flex-direction: column;
}

.mfeedback .mf-text {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.mfeedback .mf-req {
    color: #8B0000;
    margin-left: 4px;
}

.mfeedback input[type="text"],
.mfeedback input[type="email"],
.mfeedback input[type="tel"],
.mfeedback textarea,
.mfeedback input[type="captcha_word"] {
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    color: #333;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.mfeedback input[type="text"]:focus,
.mfeedback input[type="email"]:focus,
.mfeedback input[type="tel"]:focus,
.mfeedback textarea:focus,
.mfeedback input[type="captcha_word"]:focus {
    outline: none;
    border-color: #8B0000;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.mfeedback textarea {
    resize: vertical;
    min-height: 120px;
    font-size: 1.6rem;
    line-height: 1.5;
}

.mfeedback .mf-captcha img {
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(139, 0, 0, 0.3);
    align-self: flex-start;
    border: 1px solid #e9ecef;
}

.mfeedback input[type="submit"] {
    background-color: #8B0000;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    min-width: 160px;
}

.mfeedback input[type="submit"]:hover {
    background-color: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.mfeedback .mf-ok-text {
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 0;
    text-align: center;
    background-color: #f8fff9;
    border: 1px solid #27ae60;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mfeedback .mf-error-text,
.mfeedback .mf-error {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 1em;
    background-color: #fef2f2;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e74c3c;
}

/* Специфические стили для формы в блоке контактов */
.service-contacts .mfeedback {
    background-color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 25px;
}

.service-contacts .mfeedback .mf-text {
    font-size: 1.9rem;
    color: #2c3e50;
}

.service-contacts .mfeedback input[type="text"],
.service-contacts .mfeedback input[type="email"],
.service-contacts .mfeedback input[type="tel"],
.service-contacts .mfeedback textarea {
    font-size: 1.6rem;
    padding: 14px 16px;
}

.service-contacts .mfeedback input[type="submit"] {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .mfeedback {
        padding: 25px 20px;
        margin: 0;
    }
    
    .service-contacts .mfeedback {
        padding: 20px 15px;
    }
    
    .mfeedback input[type="text"],
    .mfeedback input[type="email"],
    .mfeedback input[type="tel"],
    .mfeedback textarea {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .mfeedback input[type="submit"] {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }
    
    .mfeedback .mf-text {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .mfeedback {
        padding: 20px 15px;
    }
    
    .service-contacts .mfeedback {
        padding: 15px 12px;
    }
}