/* Основные стили формы в стиле Bootstrap 5 */
.mcf-contact-form-wrapper {
    margin: 0 auto;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.mcf-contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(269deg, #1a7f7b, #2ecc71);
}

.mcf-form {
    width: 100%;
}

.mcf-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mcf-form-header h4 {
    margin: 0 0 0.5rem;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.mcf-form-description {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Группы формы */
.mcf-form-group {
    margin-bottom: 1.75rem;
}

/* Обертка для поля с иконкой */
.mcf-field-wrapper {
    position: relative;
}

/* Иконки внутри полей */
.mcf-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    pointer-events: none;
    z-index: 2;
    width: 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.mcf-field-icon i {
    font-size: 1.1rem;
}

/* Поля ввода */
.mcf-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: #fff;
    color: #212529;
    line-height: 1.5;
    height: 52px;
}

.mcf-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.mcf-input:focus + .mcf-field-icon {
    color: #3498db;
}

.mcf-input.is-invalid {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.mcf-input.is-valid {
    border-color: #2ecc71;
    background-color: #f0fff4;
}

.mcf-input::placeholder {
    color: #5b5e5f;
    font-size: 0.95rem;
}

.mcf-input:focus::placeholder {
    color: #5b5e5f;
}

/* Чекбокс */
.mcf-checkbox-group {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 0.5rem;
}

.mcf-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mcf-checkbox {
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.2em;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.mcf-checkbox:checked {
    background-color: #3498db;
    border-color: #3498db;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
}

.mcf-checkbox-label {
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.5;
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.mcf-checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.2s;
}

.mcf-checkbox-label a:hover {
    border-bottom-color: #3498db;
}

/* Кнопка отправки */
.mcf-submit-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #000000 0%, #1a7f7b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: .3s ease-in-out;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.mcf-submit-button:hover {
    background-color: #0e707c;
    color: #fff;
    background-image: linear-gradient(to right, #1a7f7b, 60%, #000);
    transform: translateY(-2px);
    box-shadow:0 8px 20px #1a7f7b3d;
}

.mcf-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.mcf-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Спиннер */
.mcf-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: mcf-spin 0.8s linear infinite;
    display: none;
}

@keyframes mcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщения об ошибках - ИСПРАВЛЕНО: теперь без отступов */
.mcf-error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mcf-error-message.show {
    opacity: 1;
    height: auto;
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.mcf-error-message::before {
    content: '⚠';
    font-size: 1rem;
    line-height: 1;
}

/* Сообщения ответа */
.mcf-response-message {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.3s ease-out;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.mcf-response-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mcf-response-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.mrf-success-container {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease-out;
}

.mrf-success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #155724;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mrf-success-icon i {
    font-size: 2.5rem;
}

.mrf-success-message {
    color: #155724;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Информация внизу формы */
.mcf-form-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.mcf-form-footer small {
    font-size: 0.85rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.mcf-form-footer i {
    color: #1fad66;
}
/* Адаптивность */
@media (max-width: 768px) {
    .mcf-contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .mcf-form-header h4 {
        font-size: 1.5rem;
    }
    
    .mcf-input {
        padding: 0.75rem 0.9rem 0.75rem 2.8rem;
        font-size: 1rem;
        height: 48px;
    }
    
    .mcf-field-icon {
        left: 0.9rem;
    }
    
    .mcf-submit-button {
        padding: 0.875rem 1.25rem;
        font-size: 1.05rem;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .mcf-contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .mcf-form-header {
        margin-bottom: 1.5rem;
    }
    
    .mcf-form-group {
        margin-bottom: 1.5rem;
    }
    
    .mcf-input {
        height: 46px;
    }
    
    .mrf-success-icon {
        width: 60px;
        height: 60px;
    }
    
    .mrf-success-icon i {
        font-size: 1.8rem;
    }
    
    .mrf-success-message {
        font-size: 1.1rem;
    }
}