/* Estilos para el formulario de registro de aspirantes */

#registro-aspirantes-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Barra de progreso */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.progress-step {
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    color: #6c757d;
    margin: 2px;
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.progress-step.active {
    background: #007cba;
    color: white;
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

/* Pasos del formulario */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    color: #2c3e50;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.form-step h4 {
    color: #495057;
    margin: 25px 0 15px 0;
    font-size: 16px;
}

/* Grupos de formulario */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

/* Archivos */
.form-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #dee2e6;
    background: #f8f9fa;
}

.form-group input[type="file"]:hover {
    border-color: #007cba;
    background: #e3f2fd;
}

/* Navegación del formulario */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
}

.btn-next {
    background: #007cba;
    color: white;
}

.btn-next:hover {
    background: #0056b3;
}

.btn-submit {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 15px 40px;
}

.btn-submit:hover {
    background: #218838;
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Campos condicionales */
#otra-secundaria-fields {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
    border-left: 4px solid #007cba;
}

/* Información adicional */
.info-text {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
    margin-bottom: 20px;
    color: #1565c0;
}

/* Overlay de carga */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Errores */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Mensaje de éxito */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
    text-align: center;
}

.success-message h3 {
    margin: 0 0 15px 0;
    color: #155724;
}

.success-message p {
    margin: 10px 0;
    line-height: 1.6;
}

.success-message .highlight {
    font-weight: bold;
    color: #0c5aa6;
}

/* Responsive */
@media (max-width: 768px) {
    #registro-aspirantes-container {
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-group {
        min-width: auto;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 5px;
    }
    
    .progress-step {
        min-width: auto;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-step h3 {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previene zoom en iOS */
    }
}