/* ==============================================
   Estilos principales del formulario
   ============================================== */

.mfc-form-wrapper * {
    box-sizing: border-box;
}

.mfc-form-wrapper {
    width: 100%;
    margin: 2rem 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mfc-main-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Campos del formulario */
.mfc-form-fields {
    width: 100%;
}

.mfc-form-fields p {
    margin-bottom: 1.5rem;
}

.mfc-form-fields label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3338;
}

.mfc-form-fields input[type="text"],
.mfc-form-fields input[type="email"],
.mfc-form-fields textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.mfc-form-fields input[type="text"]:focus,
.mfc-form-fields input[type="email"]:focus,
.mfc-form-fields textarea:focus {
    border-color: #FF5789;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 87, 137, 0.15);
}

.mfc-form-fields textarea {
    height: 150px;
    resize: vertical;
}

/* Botón de enviar */
.mfc-form-fields input[type="submit"] {
    background: #FF5789;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.mfc-form-fields input[type="submit"]:hover {
    background: #e64d78;
    transform: translateY(-2px);
}

.mfc-form-fields input[type="submit"]:active {
    transform: translateY(1px);
}

/* Mensaje de éxito */
.mfc-notice {
    margin: 25px 0 0 0 !important;
    padding: 15px 20px !important;
    border-left: 4px solid #4CAF50;
    background: #f8fff8;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ==============================================
   Barra lateral informativa
   ============================================== */

.mfc-sidebar {
    width: 100%;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.mfc-info-box h3 {
    margin: 0 0 1.2rem 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
}

.mfc-info-box p {
    line-height: 1.6;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ==============================================
   Diseño Responsive
   ============================================== */

@media (min-width: 768px) {
    .mfc-main-form {
        flex-direction: row;
        gap: 40px;
    }
    
    .mfc-sidebar {
        width: 600px;
        flex-shrink: 0;
    }
    
    .mfc-form-fields input[type="submit"] {
        width: auto;
    }
}

@media (max-width: 767px) {
    .mfc-form-wrapper {
        padding: 15px;
        margin: 1rem 0;
    }
    
    .mfc-sidebar {
        order: -1;
        margin-bottom: 20px;
    }
}

/* ==============================================
   Estados y animaciones
   ============================================== */

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

.mfc-form-wrapper {
    animation: fadeIn 0.5s ease-out;
}

/* Campos deshabilitados */
.mfc-form-fields input:disabled,
.mfc-form-fields textarea:disabled {
    background: #f0f0f1;
    cursor: not-allowed;
}

/* Efecto de carga */
.mfc-loading {
    position: relative;
    opacity: 0.7;
}

.mfc-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Spinner de carga */
.mfc-submit-btn {
    position: relative;
    overflow: hidden;
    background: #FF5789 !important;
    color: #ffffff !important;
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 6px !important;
    margin-top: 15px;
}

.mfc-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mfc-spin 1s linear infinite;
    display: none;
    transform: translate(-50%, -50%);
}

.mfc-submit-btn.loading .mfc-spinner {
    display: block;
}

.mfc-submit-btn.loading .mfc-btn-text {
    opacity: 0;
}

@keyframes mfc-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}