/*
================================================================
--- Estilos Finales para Formulario de Registro DAEY (v2) ---
================================================================
*/

/* Contenedor principal del formulario */
#mlm-registration-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 35px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

/* --- Cada fila o campo del formulario (espaciado reducido) --- */
#mlm-registration-form .mlm-form-field {
    margin-bottom: 18px;
}

/* --- Contenedor para campos en la misma línea --- */
#mlm-registration-form .mlm-form-row-split {
    display: flex;
    gap: 20px;
}
#mlm-registration-form .mlm-form-row-split .mlm-form-field {
    width: 100%;
    margin-bottom: 0;
}

/* --- Etiquetas de los campos --- */
#mlm-registration-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* --- Asterisco rojo de campo obligatorio --- */
#mlm-registration-form .required {
    color: #d9534f;
    font-weight: bold;
    margin-left: 2px;
}

/* --- Campos de texto, email, contraseña, etc. --- */
#mlm-registration-form input[type="text"],
#mlm-registration-form input[type="email"],
#mlm-registration-form input[type="tel"],
#mlm-registration-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f7f7f7;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* --- Efecto de Foco en los campos --- */
#mlm-registration-form input:focus {
    outline: none;
    border-color: #FF7D00;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(255, 125, 0, 0.3);
}

/* --- Textos pequeños de ayuda --- */
#mlm-registration-form small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

/* --- Contenedor de contraseña para el icono del ojo --- */
.mlm-password-wrapper { position: relative; }
.toggle-password-visibility {
    position: absolute;
    top: 42px;
    right: 15px;
    cursor: pointer;
    color: #aaa;
}

/* --- Checkbox de Términos y Condiciones --- */
.mlm-form-field-consent { display: flex; align-items: center; gap: 10px; }
.mlm-form-field-consent input[type="checkbox"] { width: auto; flex-shrink: 0; }
.mlm-form-field-consent label { font-weight: normal; font-size: 14px; margin-bottom: 0; }

/* --- Botón de Envío --- */
#mlm-registration-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #fff !important;
    background-color: #FF7D00 !important;
    border: none !important;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}
#mlm-registration-form button[type="submit"]:hover {
    background-color: #E67000 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ============================================= */
/* --- LÓGICA RESPONSIVE PARA MÓVILES ---        */
/* ============================================= */
@media (max-width: 600px) {
    /* Apila los campos Nombre y Apellido uno debajo del otro */
    #mlm-registration-form .mlm-form-row-split {
        flex-direction: column;
        gap: 0; /* Quitamos el espacio lateral */
    }

    /* Devolvemos el margen inferior al campo "Nombre" cuando está apilado */
    #mlm-registration-form .mlm-form-row-split .mlm-form-field {
        margin-bottom: 18px;
    }
}