/* Asegurar que los campos sean visibles */
#page-login-signup .mform .fitem {
    margin-bottom: 15px;
}

/* Estilos para secciones condicionales */
.conditional-section {
    padding: 15px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.sub-section {
    padding: 10px;
    margin: 10px 0;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Headers mejorados */
#page-login-signup .mform legend,
#page-login-signup .fcontainer .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 30px 0 20px 0;
    font-weight: bold;
    font-size: 1.2em;
    border: none;
    width: 100%;
}

/* Campos requeridos */
.fitem.required .col-form-label:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
}

/* Placeholder en selects */
select.placeholder-visible {
    color: #6c757d !important;
}

select option {
    color: #495057 !important;
}

/* Inputs numéricos */
input[type="text"][maxlength] {
    font-family: monospace;
}

/* Mensajes de error */
#page-login-signup .alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Tooltips informativos */
.form-control-feedback {
    color: #6c757d;
    font-size: 0.875em;
    margin-top: 5px;
}

/* Mejorar espaciado */
#page-login-signup .mform fieldset {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .conditional-section {
        padding: 10px;
    }
    
    #page-login-signup .mform legend {
        font-size: 1em;
        padding: 10px 15px;
    }
}
