/**
 * Estilos para el modal de inscripción de talleres
 */

/* Modal principal */
.talleres-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.talleres-modal-container {
    background: white;
    width: 100%;
    max-width: 1050px;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.talleres-modal-header {
    background: #940404;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1e1e1;
}

.talleres-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.talleres-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.7;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.talleres-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.talleres-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 75vh;
}

/* Formulario */
.talleres-modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* Módulos selección */
.modulos-seleccion {
    margin: 15px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.modulo-seleccion-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.modulo-seleccion-item:last-child {
    border-bottom: none;
}

.modulo-seleccion-item.selected {
    background-color: #fff5f5;
}

.modulo-seleccion-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
}

.modulo-seleccion-precio {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.modulo-descripcion-mini {
    margin-top: 8px;
    font-size: 13px;
    color: #7f8c8d;
}

/* Precio total */
.taller-precio-total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    text-align: right;
    color: #940404;
}

/* Botón submit */
.talleres-modal-submit {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white!important;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 10px;
}

.talleres-modal-submit:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.talleres-modal-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensaje de error */
.form-error {
    background-color: #ffecec;
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #e74c3c;
}

/* Estado de carga */
.talleres-loading {
    text-align: center;
    padding: 30px;
    font-style: italic;
    color: #7f8c8d;
}
