/**
 * Estilos del formulario de inscripción
 */

.mpi-form-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mpi-form {
    width: 100%;
}

.mpi-form-group {
    margin-bottom: 20px;
}

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

.mpi-form-group .required {
    color: #e74c3c;
}

.mpi-form-group input[type="text"],
.mpi-form-group input[type="email"],
.mpi-form-group input[type="tel"],
.mpi-form-group input[type="date"],
.mpi-form-group input[type="file"],
.mpi-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.mpi-form-group input:focus,
.mpi-form-group select:focus {
    outline: none;
    border-color: #2271b1;
}

.mpi-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mpi-submit-btn:hover {
    background-color: #1a5a8a;
}

.mpi-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.mpi-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.mpi-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mpi-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mpi-btn-loading {
    display: inline-block;
}

/* Animación de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mpi-submit-btn.loading .mpi-btn-text {
    display: none;
}

.mpi-submit-btn.loading .mpi-btn-loading {
    display: inline-block;
}

/* Texto de ayuda */
.mpi-help-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Enlaces destacados en azul */
.mpi-link-destacado {
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mpi-link-destacado:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Warning box para menores */
.mpi-warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.mpi-warning-box strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.mpi-warning-box p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* Info box para categoría */
.mpi-info-box {
    background-color: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.mpi-info-box strong {
    color: #1a5a8a;
    margin-right: 8px;
}

#mpi-categoria-texto {
    font-weight: 600;
    color: #2271b1;
    font-size: 15px;
}

/* Precio info dinámico */
.mpi-precio-info {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 12px;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
}

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

.mpi-precio-actual {
    font-size: 15px;
    color: #1a5a8a;
}

.mpi-precio-actual strong {
    color: #2271b1;
}

.mpi-tipo-precio {
    background: #2271b1;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
    white-space: nowrap;
}

/* Preview de archivos */
.mpi-file-preview {
    margin-top: 10px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-top: 10px;
}

.file-icon {
    font-size: 24px;
    margin-right: 10px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 3px;
}

.file-size {
    font-size: 12px;
    color: #666;
}

/* Estilos para input file */
.mpi-form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.mpi-form-group input[type="file"]::-webkit-file-upload-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.mpi-form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #1a5a8a;
}

/* Estilos para checkbox de términos */
.mpi-checkbox-group {
    margin: 25px 0;
}

.mpi-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.mpi-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.mpi-checkbox-label span {
    flex: 1;
    line-height: 1.5;
}

.mpi-checkbox-label a {
    color: #2271b1;
    text-decoration: underline;
}

.mpi-checkbox-label a:hover {
    color: #1a5a8a;
}

/* Separador de secciones */
.mpi-section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
}

/* Sección de camisetas */
.mpi-camisetas-box {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.mpi-camisetas-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.mpi-talla-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.mpi-talla-item:last-child {
    border-bottom: none;
}

.mpi-talla-item label {
    margin: 0;
    font-weight: 600;
    min-width: 80px;
}

.mpi-talla-item input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.mpi-camisetas-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #2271b1;
    font-size: 16px;
    text-align: right;
}

.mpi-camisetas-total span {
    color: #2271b1;
    font-size: 20px;
}

/* Calculadora de precios */
.mpi-precio-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mpi-precio-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.mpi-precio-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mpi-precio-item:last-of-type {
    border-bottom: none;
}

.mpi-precio-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0 0;
    margin-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 20px;
}

.mpi-precio-total strong {
    font-weight: 700;
}

/* Sección de datos de pago */
.mpi-datos-pago-box {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mpi-datos-pago-box h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.mpi-pago-metodo {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.mpi-pago-titulo {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.mpi-pago-info {
    font-size: 15px;
    line-height: 1.8;
}

.mpi-pago-info div {
    margin-bottom: 5px;
}

.mpi-pago-info strong {
    color: rgba(255, 255, 255, 0.9);
}

.mpi-pago-concepto {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}

.mpi-pago-instrucciones {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.mpi-pago-instrucciones-adicionales {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .mpi-form-wrapper {
        padding: 20px;
        margin: 20px 15px;
    }
}
